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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor esi, esi
mov edx, 1
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], esi
xor ebx, ebx
mov dword [esp + 0x24], esi
call fcn.004821a0
mov edi, dword [edi*8 + 0x65e1cc]
cmp edi, esi
je 0x4856f0
mov ebp, dword [edi + 0x14]
test ebp, ebp
je 0x48532e
mov ebx, dword [ebp + 0x10]
mov al, byte [edi + 0x18]
cmp al, byte [ebx + 0x4c]
jne 0x485327
mov esi, 1
push esi
mov ecx, ebx
call fcn.00415500
inc esi
cmp esi, 5
jb 0x485319
mov ebp, dword [ebp]
test ebp, ebp
jne 0x485309
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x48535b
mov eax, dword [edi + 0x24]
test eax, eax
je 0x48534d
test byte [eax + 0xdc], 1
jne 0x48534d
cmp word [eax + 0x64], 0x83
je 0x48536d
mov edx, 1
mov ecx, edi
call fcn.00486760
jmp 0x48536d
mov cl, byte [edi + 0x1a]
mov al, byte [edi + 0x1b]
cmp cl, al
jbe 0x48536d
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], 0
lea ebx, [edi + 0x3c]
mov al, byte [ebx]
test al, 0xf8
je 0x485593
mov cl, al
and cl, 6
jne 0x4853c1
test al, 1
je 0x4853a0
mov dl, byte [esp + 0x14]
mov cx, word [ebx + 2]
call fcn.0040f060
jmp 0x4853af
xor edx, edx
push 0
mov dx, word [ebx + 2]
mov ecx, edi
call fcn.004860e0
mov esi, eax
mov al, byte [edi + 0x1e]
test al, al
jne 0x48557e
jmp 0x485476
cmp cl, 2
jne 0x48541f
xor ebp, ebp
xor ecx, ecx
mov bp, word [ebx + 2]
mov cl, byte [edi + 0x18]
mov edx, ebp
call fcn.0049a4f0
xor ecx, ecx
and eax, 0xff
mov cl, byte [edi + 0x18]
mov dword [esp + 0x18], eax
call fcn.004226f0
mov esi, eax
test esi, esi
je 0x485419
mov ecx, esi
call fcn.00418c90
test eax, eax
jne 0x485412
cmp byte [esi + 0x4d], 0x4c
jne 0x485412
xor edx, edx
mov dl, byte [esi + 0xc9]
cmp edx, ebp
jne 0x485412
inc dword [esp + 0x18]
mov esi, dword [esi + 0x6c]
test esi, esi
jne 0x4853f1
mov esi, dword [esp + 0x18]
jmp 0x485476
xor ebp, ebp
xor ecx, ecx
mov bp, word [ebx + 2]
mov cl, byte [edi + 0x18]
mov edx, ebp
call fcn.0049a3d0
test al, al
je 0x48543c
mov esi, 1
jmp 0x485476
xor ecx, ecx
mov cl, byte [edi + 0x18]
call fcn.004226f0
mov esi, eax
test esi, esi
je 0x485474
mov ecx, esi
call fcn.00418c90
test eax, eax
jne 0x48546d
cmp byte [esi + 0x4d], 0x4b
jne 0x48546d
xor eax, eax
mov al, byte [esi + 0xc8]
cmp eax, ebp
je 0x4858ef
mov esi, dword [esi + 0x6c]
test esi, esi
jne 0x48544c
xor esi, esi
mov eax, dword [esp + 0x14]
xor edx, edx
mov dl, byte [ebx]
lea ecx, [eax + eax*8]
shr edx, 3
mov cl, byte [ecx*4 + 0x6509e1]
cmp cl, 1
jne 0x485497
mov ecx, 7
jmp 0x4854a1
neg cl
sbb ecx, ecx
and ecx, 0x17
add ecx, 0x29
xor eax, eax
mov ax, word [ebx + 2]
cmp eax, ecx
jne 0x4854b6
xor eax, eax
mov al, byte [edi + 0x1b]
cmp edx, eax
jbe 0x4854b6
mov edx, eax
cmp esi, edx
jae 0x48557e
sub edx, esi
je 0x48557e
mov ebp, edx
mov al, byte [ebx]
xor ecx, ecx
mov cl, byte [ebx + 1]
and al, 6
cmp al, 2
mov esi, ecx
je 0x4854db
cmp al, 4
jne 0x485506
mov ecx, dword [esp + 0x14]
call fcn.00481fa0
test eax, eax
je 0x485506
mov eax, dword [esp + 0x1c]
cmp eax, esi
jbe 0x4854f4
xor esi, esi
jmp 0x4854fb
sub esi, eax
inc eax
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x14]
xor edx, edx
call fcn.004821a0
xor ecx, ecx
mov cl, byte [edi + 0x18]
call fcn.00481fa0
test eax, eax
jne 0x48555b
test byte [ebx], 6
jne 0x48555b
xor ecx, ecx
mov cl, byte [edi + 0x18]
lea edx, [ecx + ecx*8]
mov al, byte [edx*4 + 0x6509e1]
cmp al, 1
jne 0x485533
mov eax, 0x6a
jmp 0x48553f
neg al
sbb eax, eax
and eax, 0x17
add eax, 0x83
xor edx, edx
mov dx, word [ebx + 2]
cmp edx, eax
jne 0x48555b
cmp dword [ecx*4 + 0x4fee58], 0x258
jge 0x48555b
mov esi, 0x96
mov cl, byte [ebx]
xor eax, eax
mov ax, word [ebx + 2]
push esi
shr ecx, 1
and ecx, 3
push eax
push ecx
xor ecx, ecx
mov cl, byte [edi + 0x18]
mov edx, edi
call fcn.00480ac0
dec ebp
jne 0x4854c8
mov eax, dword [esp + 0x20]
add ebx, 4
inc eax
cmp eax, 0x64
mov dword [esp + 0x20], eax
jb 0x48537c
mov al, byte [edi + 0x1a]
cmp al, 1
ja 0x4855ca
jne 0x4856e2
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4856e2
xor eax, eax
mov al, byte [edi + 0x18]
lea edx, [eax + eax*8]
mov al, byte [edx*4 + 0x6509e1]
cmp al, 1
je 0x4856e2
test al, al
jne 0x4856e2
lea eax, [esp + 0x12]
xor ecx, ecx
mov cl, byte [edi + 0x18]
push eax
lea edx, [esp + 0x17]
call fcn.00480e40
mov al, byte [esp + 0x12]
test al, al
jne 0x4855f0
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x4856e2
mov edx, dword [edi + 0x30]
mov esi, 1
test edx, edx
mov ebx, 0xa0
je 0x485615
xor ecx, ecx
mov cl, byte [edi + 0x18]
call fcn.00485900
cmp eax, 3
jne 0x485615
mov eax, dword [edi + 0x30]
jmp 0x48564d
mov edx, dword [edi + 0x34]
test edx, edx
je 0x485630
xor ecx, ecx
mov cl, byte [edi + 0x18]
call fcn.00485900
cmp eax, 3
jne 0x485630
mov eax, dword [edi + 0x34]
jmp 0x48564d
mov edx, dword [edi + 0x38]
test edx, edx
je 0x48564b
xor ecx, ecx
mov cl, byte [edi + 0x18]
call fcn.00485900
cmp eax, 3
jne 0x48564b
mov eax, dword [edi + 0x38]
jmp 0x48564d
xor eax, eax
test eax, eax
je 0x485694
push 1
mov edx, 1
mov ecx, edi
mov ebx, 0x50
call fcn.00483c90
test eax, eax
jne 0x48566c
xor esi, esi
jmp 0x4856af
mov al, byte [edi + 0x1a]
mov cl, byte [edi + 0x1b]
cmp al, cl
jae 0x48567e
cmp al, 0xf
jae 0x48567e
xor esi, esi
jmp 0x4856af
xor ecx, ecx
mov cl, byte [edi + 0x18]
cmp dword [ecx*4 + 0x4fee58], 0x1f4
jge 0x4856af
xor esi, esi
jmp 0x4856af
push 1
mov edx, 1
mov ecx, edi
call fcn.00483c90
test eax, eax
jne 0x4856aa
xor esi, esi
jmp 0x4856af
mov ebx, 0x5a
test esi, esi
je 0x4856e2
xor ecx, ecx
mov cl, byte [edi + 0x18]
lea edx, [ecx + ecx*8]
mov al, byte [edx*4 + 0x6509e1]
cmp al, 1
jne 0x4856cd
mov eax, 0x6e
jmp 0x4856d9
neg al
sbb eax, eax
and eax, 8
add eax, 0x95
push ebx
push eax
mov edx, edi
call fcn.00480bb0
mov edi, dword [edi]
test edi, edi
jne 0x485302
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x485733
mov eax, dword [esp + 0x14]
mov esi, dword [eax*8 + 0x65e1cc]
test esi, esi
je 0x485733
mov eax, dword [esi + 0x24]
test eax, eax
je 0x48572d
test byte [eax + 0xdc], 1
je 0x48572d
mov cl, byte [esi + 0x1a]
mov al, byte [esi + 0x1b]
cmp cl, al
jae 0x48572d
mov edx, 1
mov ecx, esi
call fcn.00486760
mov esi, dword [esi]
test esi, esi
jne 0x485707
test ebx, ebx
je 0x4858e7
mov dl, byte [ebx + 0x18]
mov eax, edx
and eax, 0xff
lea ecx, [eax + eax*8]
mov cl, byte [ecx*4 + 0x6509e1]
cmp cl, 1
jne 0x48575b
mov ebp, 0x6d
jmp 0x485767
neg cl
sbb ecx, ecx
and ecx, 0x72
add ecx, 0x2a
mov ebp, ecx
lea eax, [eax + eax*8]
mov al, byte [eax*4 + 0x6509e1]
cmp al, 1
jne 0x48577c
mov eax, 7
jmp 0x485786
neg al
sbb eax, eax
and eax, 0x17
add eax, 0x29
mov ecx, eax
call fcn.0040ec50
xor ecx, ecx
mov dword [esp + 0x18], eax
mov cl, byte [ebx + 0x18]
mov edx, dword [ecx*4 + 0x503dcc]
mov eax, dword [ecx*4 + 0x50688c]
cmp edx, eax
ja 0x485809
call fcn.004226f0
mov esi, eax
test esi, esi
je 0x485809
mov edi, 0x400
mov ecx, esi
call fcn.00418c90
test eax, eax
jne 0x4857d6
test dword [esi + 0xdc], edi
je 0x4857d6
mov ecx, esi
call fcn.004b2870
test eax, eax
jne 0x4857df
mov esi, dword [esi + 0x6c]
test esi, esi
jne 0x4857b8
jmp 0x485809
xor eax, eax
xor edi, edi
mov al, byte [ebx + 0x18]
mov esi, dword [eax*8 + 0x65e1cc]
test esi, esi
je 0x485804
push 0
mov edx, ebp
mov ecx, esi
call fcn.004860e0
mov esi, dword [esi]
add edi, eax
test esi, esi
jne 0x4857f1
lea esi, [edi + 1]
jmp 0x48587c
cmp dword [esp + 0x18], 0xd
jge 0x4858d1
mov ecx, ebp
call fcn.0040eef0
mov dl, byte [ebx + 0x18]
and eax, 0xff
mov cl, al
call fcn.0040efc0
xor ecx, ecx
add eax, 0xd
mov cl, byte [ebx + 0x18]
lea ecx, [ecx + ecx*8]
mov cl, byte [ecx*4 + 0x6509e1]
cmp cl, 1
jne 0x485848
mov ecx, 0x6a
jmp 0x485855
neg cl
sbb ecx, ecx
and ecx, 0x17
add ecx, 0x83
xor edx, edx
mov dl, byte [ecx + 0x6ad390]
mov ecx, edx
cmp eax, ecx
jbe 0x4858d1
xor edx, edx
sub eax, ecx
mov dl, byte [ebp + 0x6ad390]
mov dword [esp + 0x28], edx
xor edx, edx
mov ecx, dword [esp + 0x28]
div ecx
mov esi, eax
inc esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4858a0
xor ecx, ecx
mov cl, byte [ebx + 0x18]
call fcn.00481e80
test eax, eax
je 0x4858a0
xor ecx, ecx
mov cl, byte [ebx + 0x18]
call fcn.004859a0
test eax, eax
je 0x4858d1
xor ecx, ecx
mov edx, ebp
mov cl, byte [ebx + 0x18]
call fcn.00485970
cmp esi, eax
jbe 0x4858d1
mov ecx, dword [esp + 0x18]
xor edx, edx
cmp ecx, 8
setg dl
dec edx
xor ecx, ecx
mov cl, byte [ebx + 0x18]
and edx, 0x14
add edx, 0x78
push edx
push ebp
mov edx, ebx
call fcn.00480bb0
mov esi, dword [esp + 0x14]
mov ecx, ebx
mov edx, esi
call fcn.004b2a80
mov edx, esi
mov ecx, ebx
call fcn.004b2be0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov esi, 1
jmp 0x485476