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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x606278
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x667050]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp dword [ebp + 0x10], 0xffffffff
je 0x48183f
push edi
lea eax, [esi + 0x20]
call fcn.005aa990
test eax, eax
mov dword [esp + 0x20], eax
je 0x48183f
mov edx, dword [eax + 0x4ec]
test edx, edx
lea ebx, [eax + 0x4e8]
je 0x481131
mov ecx, dword [ebx + 8]
sub ecx, edx
sar ecx, 2
cmp ecx, 1
jge 0x481152
push 1
mov esi, eax
call fcn.0046e910
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
mov eax, dword [ebp + 0x10]
mov dword [0x66921c], eax
je 0x48116c
add esi, 0x1f8
mov dword [0x66d10c], esi
jmp 0x481176
mov dword [0x66d10c], 0
cmp edi, 0x78
je 0x4811ac
cmp edi, 0x79
je 0x4811ac
lea esi, [esp + 0x24]
mov edi, ebx
call fcn.004a7640
lea esi, [esp + 0x10]
mov dword [esp + 0x18], eax
call fcn.00460830
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
jmp 0x4811e6
mov esi, dword [ebx + 8]
cmp edx, esi
jbe 0x4811b9
call dword [0x6105e8]
mov dword [esp + 0x28], esi
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
mov dword [esp + 0x24], ebx
jbe 0x4811cf
call dword [0x6105e8]
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x28]
call fcn.00481c70
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
push esi
push ebx
call fcn.00481cb0
add esp, 0x10
cmp dword [ebp + 0x10], 0
jne 0x4817d2
mov eax, dword [ebp + 0xc]
cmp eax, 0x78
jne 0x4812f3
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1f8]
mov esi, dword [edx + 0x50]
add esi, 0x8c
mov eax, esi
mov dword [esp + 0x18], esi
call fcn.00447d80
cmp eax, 1
jbe 0x4817d2
mov eax, esi
call fcn.00447d80
sub eax, 1
mov dword [esp + 0x10], eax
js 0x4817d2
mov edi, edi
mov eax, ebx
xor esi, esi
call fcn.00447d80
test eax, eax
jbe 0x4812e3
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x481264
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x48126a
call dword [0x6105e8]
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 4]
test ecx, ecx
mov eax, dword [ebx + 4]
mov edi, dword [eax + esi*4]
je 0x481289
mov eax, dword [edx + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x10], eax
jb 0x481293
call dword [0x6105e8]
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x10]
mov eax, dword [ecx + edx*4]
cmp edi, dword [eax + 0x138]
mov eax, ebx
je 0x4812b5
add esi, 1
call fcn.00447d80
cmp esi, eax
jb 0x481251
jmp 0x4812e3
push esi
call fcn.005ac5c0
mov esi, dword [ebx + 4]
add esp, 4
cmp esi, dword [ebx + 8]
mov dword [esp + 0x24], edi
jbe 0x4812d0
call dword [0x6105e8]
push esi
push ebx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
push edx
mov eax, ebx
call fcn.005ab710
sub dword [esp + 0x10], 1
jns 0x481240
jmp 0x4817d2
cmp eax, 0x7b
jne 0x481421
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1f8]
add eax, 0x10
push eax
lea edi, [esp + 0x48]
call fcn.0040d3b0
mov dword [esp + 0x88], 0
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x481401
mov eax, dword [esp + 0x4c]
sub eax, ecx
sar eax, 2
cmp eax, 1
jbe 0x481401
add eax, 0xffffffff
mov dword [esp + 0x10], eax
js 0x481401
jmp 0x481350
mov eax, ebx
xor esi, esi
call fcn.00447d80
test eax, eax
jbe 0x4813f6
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x481374
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x48137a
call dword [0x6105e8]
mov ecx, dword [ebx + 4]
mov edi, dword [ecx + esi*4]
mov ecx, dword [esp + 0x48]
test ecx, ecx
mov edx, dword [edi + 0x4e4]
mov dword [esp + 0x24], edx
je 0x4813a1
mov eax, dword [esp + 0x4c]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x10], eax
jb 0x4813ab
call dword [0x6105e8]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
cmp eax, dword [ecx + edx*4]
mov eax, ebx
je 0x4813c8
add esi, 1
call fcn.00447d80
cmp esi, eax
jb 0x481361
jmp 0x4813f6
push esi
call fcn.005ac5c0
mov esi, dword [ebx + 4]
add esp, 4
cmp esi, dword [ebx + 8]
mov dword [esp + 0x24], edi
jbe 0x4813e3
call dword [0x6105e8]
push esi
push ebx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x38]
push ecx
mov eax, ebx
call fcn.005ab710
sub dword [esp + 0x10], 1
jns 0x481350
lea esi, [esp + 0x44]
call fcn.005afb00
mov ecx, esi
mov dword [esp + 0x88], 0xffffffff
call fcn.0040d460
jmp 0x4817d2
cmp eax, 0x7a
jne 0x48151b
mov esi, dword [ebp + 8]
add esi, 0x40c
mov eax, esi
mov dword [esp + 0x18], esi
call fcn.00447d80
cmp eax, 1
jbe 0x4817d2
mov eax, esi
call fcn.00447d80
sub eax, 1
mov dword [esp + 0x10], eax
js 0x4817d2
jmp 0x481460
mov eax, ebx
xor esi, esi
call fcn.00447d80
test eax, eax
jbe 0x48150b
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x481484
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x48148a
call dword [0x6105e8]
mov edx, dword [ebx + 4]
mov edi, dword [edx + esi*4]
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 4]
test ecx, ecx
mov eax, dword [edi + 0x4e4]
mov dword [esp + 0x24], eax
je 0x4814b3
mov eax, dword [edx + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x10], eax
jb 0x4814bd
call dword [0x6105e8]
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 4]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
cmp edx, dword [ecx + eax*4]
mov eax, ebx
je 0x4814dd
add esi, 1
call fcn.00447d80
cmp esi, eax
jb 0x481471
jmp 0x48150b
push esi
call fcn.005ac5c0
mov esi, dword [ebx + 4]
add esp, 4
cmp esi, dword [ebx + 8]
mov dword [esp + 0x24], edi
jbe 0x4814f8
call dword [0x6105e8]
push esi
push ebx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
push edx
mov eax, ebx
call fcn.005ab710
sub dword [esp + 0x10], 1
jns 0x481460
jmp 0x4817d2
mov eax, dword [ebp + 8]
add eax, 0x1f8
mov eax, dword [eax]
push eax
lea edi, [esp + 0x48]
call fcn.0040d3b0
mov esi, 1
mov eax, edi
mov dword [esp + 0x88], esi
call fcn.0040d490
test al, al
jne 0x4817b6
mov ecx, dword [ebp + 0xc]
mov edx, 2
mov dword [esp + 0x54], 0x72
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], 0x73
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], 0x75
mov dword [esp + 0x68], 3
mov dword [esp + 0x6c], 0x74
mov dword [esp + 0x70], 4
mov dword [esp + 0x74], 0x76
mov dword [esp + 0x78], 5
xor eax, eax
lea esp, [esp]
cmp ecx, dword [esp + eax*8 + 0x54]
je 0x4815b2
add eax, esi
cmp eax, 5
jb 0x4815a0
jmp 0x4817b6
cmp dword [esp + eax*8 + 0x58], 0
je 0x4817b6
xor esi, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
lea eax, [esp + 0x44]
mov byte [esp + 0x88], dl
xor edi, edi
call fcn.00447d80
test eax, eax
mov dword [esp + 0x10], eax
jbe 0x48166f
mov esi, dword [esp + 0x48]
test esi, esi
je 0x4815fe
mov eax, dword [esp + 0x4c]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x481604
call dword [0x6105e8]
mov eax, dword [ebp + 8]
add eax, 0x1f8
mov dword [esp + 0x24], eax
push eax
mov eax, dword [esi + edi*4]
call fcn.0040ce60
test esi, esi
mov dword [esp + 0x18], eax
je 0x48162e
mov eax, dword [esp + 0x4c]
sub eax, esi
sar eax, 2
cmp edi, eax
jb 0x481634
call dword [0x6105e8]
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esi + edi*4]
call fcn.0040ce60
cmp eax, dword [esp + 0x18]
jne 0x48165e
lea esi, [esp + 0x44]
call fcn.00448340
push eax
lea esi, [esp + 0x38]
call fcn.00447e10
mov esi, dword [esp + 0x48]
add edi, 1
cmp edi, dword [esp + 0x10]
jb 0x4815ed
mov esi, dword [esp + 0x38]
test esi, esi
jne 0x481673
xor eax, eax
jmp 0x48167c
mov eax, dword [esp + 0x3c]
sub eax, esi
sar eax, 2
add eax, 0xffffffff
mov dword [esp + 0x10], eax
js 0x48175e
lea esp, [esp]
mov eax, ebx
xor edi, edi
call fcn.00447d80
test eax, eax
jbe 0x481753
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4816b4
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x4816be
call dword [0x6105e8]
mov esi, dword [esp + 0x38]
test esi, esi
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + edi*4]
mov edx, dword [eax + 0x4e4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], edx
je 0x4816e5
mov eax, dword [esp + 0x3c]
sub eax, esi
sar eax, 2
cmp dword [esp + 0x10], eax
jb 0x4816ef
call dword [0x6105e8]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
cmp eax, dword [esi + ecx*4]
mov eax, ebx
je 0x48170c
add edi, 1
call fcn.00447d80
cmp edi, eax
jb 0x4816a1
jmp 0x481753
push edi
call fcn.005ac5c0
mov esi, dword [ebx + 4]
mov edx, dword [esp + 0x1c]
add esp, 4
cmp esi, dword [ebx + 8]
mov dword [esp + 0x24], edx
jbe 0x48172b
call dword [0x6105e8]
push esi
push ebx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x38]
push ecx
mov eax, ebx
call fcn.005ab710
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x38]
call fcn.004b4b60
mov esi, dword [esp + 0x3c]
add esp, 4
sub dword [esp + 0x10], 1
jns 0x481690
mov ebx, dword [esp + 0x3c]
cmp esi, ebx
jbe 0x481770
call dword [0x6105e8]
mov esi, dword [esp + 0x38]
cmp esi, dword [esp + 0x3c]
lea edi, [esp + 0x34]
jbe 0x481780
call dword [0x6105e8]
push ebx
push edi
push esi
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.004294f0
mov eax, dword [esp + 0x38]
xor esi, esi
cmp eax, esi
je 0x4817aa
push eax
call fcn.005e6954
add esp, 4
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x88], 0xffffffff
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4817d2
push eax
call fcn.005e6954
add esp, 4
mov edi, dword [esp + 0x20]
mov edx, dword [ebp + 8]
push 1
push edi
push edx
call fcn.00481ae0
call fcn.0046dfe0
mov eax, dword [edi]
mov edx, dword [eax + 0xc8]
mov ecx, edi
call edx
test al, al
je 0x481804
cmp dword [edi + 0x510], 1
jbe 0x481804
mov al, 1
jmp 0x481806
xor al, al
push eax
xor eax, eax
mov esi, edi
call fcn.0046dc70
cmp dword [esi + 0x510], 0
jne 0x48183f
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x2d0]
test ecx, ecx
mov byte [esi + 0x2d8], 0
je 0x481835
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0x2d0], 0
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc