Function at 0x4b1160
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5fc0ed
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x667050]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push esi
push edi
mov eax, dword [0x667050]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x84]
test eax, eax
mov dword [esp + 0x3c], ebx
je 0x4b1239
mov ecx, dword [ebx + 0x88]
sub ecx, eax
sar ecx, 3
je 0x4b1239
lea edx, [esp + 0x9c]
push edx
call fcn.004e1a50
push 0x625360
lea ecx, [esp + 0x84]
mov dword [esp + 0x11c], 0
call dword [0x610498]
lea ecx, [esp + 0x80]
lea edi, [esp + 0x9c]
mov byte [esp + 0x118], 1
call fcn.004e2070
lea ecx, [esp + 0x80]
mov edi, eax
mov byte [esp + 0x118], 0
call dword [0x6105a0]
test edi, edi
jne 0x4b1240
lea eax, [esp + 0x9c]
push eax
mov dword [esp + 0x11c], 0xffffffff
call fcn.004e1b60
xor al, al
jmp 0x4b1afc
push str.E9FBCDD49D9F6491BA7012D9F1DC485A
lea ecx, [esp + 0x4c]
call dword [0x610498]
lea ecx, [esp + 0x48]
mov byte [esp + 0x118], 2
call fcn.004e2220
lea ecx, [esp + 0x48]
mov byte [esp + 0x118], 0
call dword [0x6105a0]
push str.VERSION
lea ecx, [esp + 0x4c]
call dword [0x610498]
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x4c]
xor edi, edi
mov byte [esp + 0x11c], 3
call fcn.004e2140
lea ecx, [esp + 0x48]
mov edi, eax
mov byte [esp + 0x118], 0
call dword [0x6105a0]
test edi, edi
jne 0x4b12d3
lea edx, [esp + 0x9c]
push edx
mov dword [esp + 0x11c], 0xffffffff
call fcn.004e1b60
xor al, al
jmp 0x4b1afc
cmp dword [ebx + 0x64], 8
jb 0x4b12de
mov eax, dword [ebx + 0x50]
jmp 0x4b12e1
lea eax, [ebx + 0x50]
push eax
lea ecx, [esp + 0x84]
call dword [0x610498]
lea ecx, [esp + 0x80]
mov byte [esp + 0x118], 4
call fcn.004e2220
lea ecx, [esp + 0x80]
mov byte [esp + 0x118], 0
call dword [0x6105a0]
push str.ADVERT
lea ecx, [esp + 0x4c]
call dword [0x610498]
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x4c]
xor edi, edi
mov byte [esp + 0x11c], 5
call fcn.004e2140
mov esi, eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x40], esi
mov byte [esp + 0x118], 0
call dword [0x6105a0]
test esi, esi
jne 0x4b137d
lea ecx, [esp + 0x9c]
push ecx
mov dword [esp + 0x11c], 0xffffffff
call fcn.004e1b60
xor al, al
jmp 0x4b1afc
lea esi, [esp + 0x34]
lea edi, [ebx + 0x80]
call fcn.00460830
lea esp, [esp]
mov eax, dword [ebx + 0x88]
cmp dword [ebx + 0x84], eax
lea esi, [ebx + 0x80]
mov dword [esp + 0x44], eax
jbe 0x4b13ae
call dword [0x6105e8]
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x4b13ba
cmp ebx, esi
je 0x4b13c0
call dword [0x6105e8]
mov edi, dword [esp + 0x38]
cmp edi, dword [esp + 0x44]
je 0x4b1a44
test ebx, ebx
jne 0x4b13d8
call dword [0x6105e8]
cmp edi, dword [ebx + 8]
jb 0x4b13e3
call dword [0x6105e8]
mov eax, dword [edi + 4]
test eax, eax
mov esi, dword [edi]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
je 0x4b1400
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov byte [esp + 0x118], 6
cmp dword [esi], 0
jne 0x4b1423
lea eax, [esp + 0x10]
mov byte [esp + 0x118], 0
call fcn.0042e290
jmp 0x4b1a29
push str.Resource
lea ecx, [esp + 0x68]
call dword [0x610498]
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x11c], 7
call fcn.004e2140
lea ecx, [esp + 0x64]
mov ebx, eax
mov byte [esp + 0x118], 6
call dword [0x6105a0]
test ebx, ebx
je 0x4b1a10
push 0x624f68
lea ecx, [esp + 0x1c]
call dword [0x610498]
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x1c]
mov edi, ebx
mov byte [esp + 0x11c], 8
call fcn.004e2140
lea ecx, [esp + 0x18]
mov edi, eax
mov byte [esp + 0x118], 6
call dword [0x6105a0]
test edi, edi
je 0x4b14fb
lea ecx, [esp + 0x80]
call dword [0x61049c]
mov byte [esp + 0x118], 9
mov edx, dword [esi]
push edx
lea eax, [esp + 0x84]
push str._05d
push eax
call fcn.004ce830
add esp, 0xc
lea ecx, [esp + 0x80]
call fcn.004e2220
lea ecx, [esp + 0x80]
mov byte [esp + 0x118], 6
call dword [0x6105a0]
push str.Type
lea ecx, [esp + 0x1c]
call dword [0x610498]
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x1c]
mov edi, ebx
mov byte [esp + 0x11c], 0xa
call fcn.004e2140
lea ecx, [esp + 0x18]
mov edi, eax
mov byte [esp + 0x118], 6
call dword [0x6105a0]
test edi, edi
je 0x4b1575
mov edx, dword [esi + 4]
push 0
push edx
lea esi, [esp + 0x88]
call fcn.004ce1a0
add esp, 8
mov ecx, eax
mov byte [esp + 0x118], 0xb
call fcn.004e2220
mov ecx, esi
mov byte [esp + 0x118], 6
call dword [0x6105a0]
mov esi, dword [esp + 0x10]
push 0x625440
lea ecx, [esp + 0x1c]
call dword [0x610498]
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x1c]
mov edi, ebx
mov byte [esp + 0x11c], 0xc
call fcn.004e2140
lea ecx, [esp + 0x18]
mov edi, eax
mov byte [esp + 0x118], 6
call dword [0x6105a0]
test edi, edi
je 0x4b15bf
lea ecx, [esi + 8]
call fcn.004e2220
push str.Size
lea ecx, [esp + 0x1c]
call dword [0x610498]
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x1c]
mov edi, ebx
mov byte [esp + 0x11c], 0xd
call fcn.004e2140
lea ecx, [esp + 0x18]
mov edi, eax
mov byte [esp + 0x118], 6
call dword [0x6105a0]
test edi, edi
je 0x4b163b
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
push edx
push eax
lea esi, [esp + 0x88]
call fcn.004ce1a0
add esp, 8
mov ecx, eax
mov byte [esp + 0x118], 0xe
call fcn.004e2220
mov ecx, esi
mov byte [esp + 0x118], 6
call dword [0x6105a0]
mov esi, dword [esp + 0x10]
push 0x625424
lea ecx, [esp + 0x1c]
call dword [0x610498]
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x1c]
mov edi, ebx
mov byte [esp + 0x11c], 0xf
call fcn.004e2140
lea ecx, [esp + 0x18]
mov edi, eax
mov byte [esp + 0x118], 6
call dword [0x6105a0]
test edi, edi
je 0x4b16d0
lea ecx, [esp + 0x80]
call dword [0x61049c]
mov byte [esp + 0x118], 0x10
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
push edx
push eax
lea ecx, [esp + 0x88]
push str._d_d
push ecx
call fcn.004ce830
add esp, 0x10
lea ecx, [esp + 0x80]
call fcn.004e2220
lea ecx, [esp + 0x80]
mov byte [esp + 0x118], 6
call dword [0x6105a0]
push str.MaxTime
lea ecx, [esp + 0x1c]
call dword [0x610498]
lea edx, [esp + 0x9c]
push edx
lea ecx, [esp + 0x1c]
mov edi, ebx
mov byte [esp + 0x11c], 0x11
call fcn.004e2140
lea ecx, [esp + 0x18]
mov edi, eax
mov byte [esp + 0x118], 6
call dword [0x6105a0]
test edi, edi
je 0x4b174a
mov eax, dword [esi + 0x50]
push 0
push eax
lea esi, [esp + 0x88]
call fcn.004ce1a0
add esp, 8
mov ecx, eax
mov byte [esp + 0x118], 0x12
call fcn.004e2220
mov ecx, esi
mov byte [esp + 0x118], 6
call dword [0x6105a0]
mov esi, dword [esp + 0x10]
push str.BeginTime
lea ecx, [esp + 0x1c]
call dword [0x610498]
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x1c]
mov edi, ebx
mov byte [esp + 0x11c], 0x13
call fcn.004e2140
lea ecx, [esp + 0x18]
mov edi, eax
mov byte [esp + 0x118], 6
call dword [0x6105a0]
test edi, edi
je 0x4b17c4
mov edx, dword [esi + 0x54]
push 0
push edx
lea esi, [esp + 0x88]
call fcn.004ce1a0
add esp, 8
mov ecx, eax
mov byte [esp + 0x118], 0x14
call fcn.004e2220
mov ecx, esi
mov byte [esp + 0x118], 6
call dword [0x6105a0]
mov esi, dword [esp + 0x10]
push str.Action
lea ecx, [esp + 0x1c]
call dword [0x610498]
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x1c]
mov edi, ebx
mov byte [esp + 0x11c], 0x15
call fcn.004e2140
lea ecx, [esp + 0x18]
mov edi, eax
mov byte [esp + 0x118], 6
call dword [0x6105a0]
test edi, edi
je 0x4b183e
mov ecx, dword [esi + 0x58]
push 0
push ecx
lea esi, [esp + 0x88]
call fcn.004ce1a0
add esp, 8
mov ecx, eax
mov byte [esp + 0x118], 0x16
call fcn.004e2220
mov ecx, esi
mov byte [esp + 0x118], 6
call dword [0x6105a0]
mov esi, dword [esp + 0x10]
push str.Target
lea ecx, [esp + 0x1c]
call dword [0x610498]
lea edx, [esp + 0x9c]
push edx
lea ecx, [esp + 0x1c]
mov edi, ebx
mov byte [esp + 0x11c], 0x17
call fcn.004e2140
lea ecx, [esp + 0x18]
mov edi, eax
mov byte [esp + 0x118], 6
call dword [0x6105a0]
test edi, edi
je 0x4b1888
lea ecx, [esi + 0x5c]
call fcn.004e2220
push str.Quick
lea ecx, [esp + 0x1c]
call dword [0x610498]
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x1c]
mov edi, ebx
mov byte [esp + 0x11c], 0x18
call fcn.004e2140
lea ecx, [esp + 0x18]
mov edi, eax
mov byte [esp + 0x118], 6
call dword [0x6105a0]
test edi, edi
je 0x4b1903
movzx eax, byte [esi + 0x78]
cdq
push edx
push eax
lea esi, [esp + 0x88]
call fcn.004ce1a0
add esp, 8
mov ecx, eax
mov byte [esp + 0x118], 0x19
call fcn.004e2220
mov ecx, esi
mov byte [esp + 0x118], 6
call dword [0x6105a0]
mov esi, dword [esp + 0x10]
push str.MaxCount
lea ecx, [esp + 0x1c]
call dword [0x610498]
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x1c]
mov edi, ebx
mov byte [esp + 0x11c], 0x1a
call fcn.004e2140
lea ecx, [esp + 0x18]
mov edi, eax
mov byte [esp + 0x118], 6
call dword [0x6105a0]
test edi, edi
je 0x4b197d
mov eax, dword [esi + 0x7c]
cdq
push edx
push eax
lea esi, [esp + 0x88]
call fcn.004ce120
add esp, 8
mov ecx, eax
mov byte [esp + 0x118], 0x1b
call fcn.004e2220
mov ecx, esi
mov byte [esp + 0x118], 6
call dword [0x6105a0]
mov esi, dword [esp + 0x10]
cmp dword [esi + 0x84], 0
jl 0x4b1a10
jg 0x4b1995
cmp dword [esi + 0x80], 0
jbe 0x4b1a10
push 0x6259bc
lea ecx, [esp + 0x1c]
call dword [0x610498]
lea edx, [esp + 0x9c]
push edx
lea ecx, [esp + 0x1c]
mov edi, ebx
mov byte [esp + 0x11c], 0x1c
call fcn.004e2140
lea ecx, [esp + 0x18]
mov edi, eax
mov byte [esp + 0x118], 6
call dword [0x6105a0]
test edi, edi
je 0x4b1a10
mov eax, dword [esi + 0x84]
mov ecx, dword [esi + 0x80]
push eax
push ecx
lea esi, [esp + 0x6c]
call fcn.004ce1a0
add esp, 8
mov ecx, eax
mov byte [esp + 0x118], 0x1d
call fcn.004e2220
mov ecx, esi
mov byte [esp + 0x118], 6
call dword [0x6105a0]
lea eax, [esp + 0x10]
mov byte [esp + 0x118], 0
call fcn.0042e290
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
cmp edi, dword [ebx + 8]
jb 0x4b1a34
call dword [0x6105e8]
mov ebx, dword [esp + 0x3c]
add edi, 8
mov dword [esp + 0x38], edi
jmp 0x4b1390
push str.CurrentResource
lea ecx, [esp + 0x1c]
call dword [0x610498]
lea edx, [esp + 0x9c]
push edx
lea ecx, [esp + 0x1c]
xor edi, edi
mov byte [esp + 0x11c], 0x1e
call fcn.004e2140
lea ecx, [esp + 0x18]
mov edi, eax
mov byte [esp + 0x118], 0
call dword [0x6105a0]
test edi, edi
mov ebx, dword [esp + 0x3c]
je 0x4b1abe
mov eax, dword [ebx + 0x90]
push 0
push eax
lea esi, [esp + 0x6c]
call fcn.004ce1a0
add esp, 8
mov ecx, eax
mov byte [esp + 0x118], 0x1f
call fcn.004e2220
mov ecx, esi
mov byte [esp + 0x118], 0
call dword [0x6105a0]
lea ecx, [esp + 0x9c]
push ecx
sub esp, 0x1c
lea edx, [ebx + 0x14]
mov ecx, esp
mov dword [esp + 0x60], esp
push edx
call dword [0x610494]
mov ecx, ebx
call fcn.005213b0
mov bl, al
lea eax, [esp + 0x9c]
push eax
mov dword [esp + 0x11c], 0xffffffff
call fcn.004e1b60
mov al, bl
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.005e693f
mov esp, ebp
pop ebp
ret