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

Disassembly:
mov ecx, dword [0x5f7a94]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x3c]
cmp eax, dword [ecx + 8]
jbe 0x49953a
sub esp, 0xbc
lea edi, [esp + 0xc8]
xor eax, eax
call fcn.0046e65b
mov ecx, dword [esp + 0xc0]
mov dword [esp], ecx
mov edx, dword [esp + 0xc4]
mov dword [esp + 4], edx
mov byte [esp + 8], 0x25
call fcn.004025f0
mov ecx, dword [esp + 0xc]
cmp ecx, 0xffffffff
je 0x4988f9
mov edx, dword [esp + 0xc4]
cmp edx, ecx
jb 0x499534
lea eax, [ecx + 1]
cmp edx, eax
jb 0x49952d
mov ebx, edx
sub edx, ecx
lea ebp, [edx - 1]
mov esi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, eax
mov eax, ebx
mov ebx, dword [esp + 0xc0]
add ebp, ebx
cmp edx, 1
jne 0x49890d
lea edi, [esp + 0xa4]
xor eax, eax
call fcn.0046e65a
mov dword [esp + 0xa4], ebx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0xa8], ecx
lea ecx, [0x4fd8c0]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], 0x1f
lea edi, [esp + 0xc8]
call fcn.0046e65b
lea ecx, [0x4e9ba0]
mov dword [esp], ecx
lea ecx, [esp + 0xa4]
mov dword [esp + 4], ecx
call fcn.004092e0
mov ecx, dword [esp + 8]
lea edx, [0x5208d4]
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], ecx
add esp, 0xbc
ret
mov eax, dword [esp + 0xc4]
mov ebx, dword [esp + 0xc0]
mov ecx, eax
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
cmp ecx, 2
jl 0x4989e9
cmp byte [ebx], 0x3a
jne 0x4989de
cmp byte [ebx + 1], 0x3a
jne 0x4989d3
lea edx, [ecx - 2]
mov edi, edx
neg edx
sar edx, 0x1f
and edx, 2
add edx, ebx
cmp ecx, 2
je 0x498964
xor ecx, ecx
jmp 0x4989f2
mov ecx, dword [0x5d8c18]
mov dword [esp + 0x88], ecx
lea edi, [esp]
xor eax, eax
call fcn.0046e65b
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], esi
call fcn.00499550
lea edi, [esp + 0x8c]
lea esi, [esp + 0x1c]
call fcn.0046eb3e
lea edi, [esp + 0xc8]
lea esi, [esp + 0x8c]
call fcn.0046eb3e
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
add esp, 0xbc
ret
mov edi, ecx
mov edx, ebx
mov ecx, 0xffffffff
jmp 0x4989f2
mov edi, ecx
mov edx, ebx
mov ecx, 0xffffffff
jmp 0x4989f2
mov edi, ecx
mov edx, ebx
mov ecx, 0xffffffff
mov dword [esp + 0x50], esi
mov dword [esp + 0x80], ebp
mov dword [esp + 0x70], eax
xor eax, eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x70]
jmp 0x498a25
mov ebx, dword [esp + 0x5c]
mov ebx, dword [esp + 0xc0]
mov edi, ecx
mov ecx, edx
mov edx, ebp
mov ebp, dword [esp + 0x80]
mov ebp, dword [esp + 0x5c]
cmp ebp, 0x10
jge 0x498b27
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], eax
xor eax, eax
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x68]
jmp 0x498ee1
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x50]
test ebp, ebp
je 0x49947e
cmp edi, ebp
jle 0x498a7c
jbe 0x499524
lea eax, [edx + ebp]
cmp byte [eax], 0x2e
je 0x499083
mov eax, dword [esp + 0xc4]
mov ebx, dword [esp + 0x64]
shr ebx, 8
mov ebp, dword [esp + 0x5c]
mov byte [esp + ebp + 0x30], bl
mov ebx, dword [esp + 0x64]
mov byte [esp + ebp + 0x31], bl
mov ebx, dword [esp + 0x58]
cmp edi, ebx
jb 0x499514
sub edi, ebx
mov dword [esp + 0x54], edi
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
and edi, ebx
lea ebx, [ebp + 2]
mov dword [esp + 0x5c], ebx
lea ebp, [edx + edi]
mov ebx, dword [esp + 0x54]
test ebx, ebx
je 0x499468
cmp byte [ebp], 0x3a
jne 0x4993d4
cmp ebx, 1
je 0x499340
lea ebp, [ebx - 1]
lea edx, [edx + edi + 1]
test ebp, ebp
jbe 0x49950b
cmp byte [edx], 0x3a
jne 0x498b1a
test ecx, ecx
jge 0x4992ac
lea ebp, [ebx - 2]
mov ecx, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, 1
add ebp, edx
cmp ebx, 2
je 0x499296
mov edx, dword [esp + 0x5c]
jmp 0x498a0d
mov ecx, ebp
mov ebp, edx
mov edx, dword [esp + 0x60]
jmp 0x498a0d
test edi, edi
jne 0x498c4a
cmp ebp, 0x10
jge 0x498bc3
test ecx, ecx
jl 0x498b44
lea ebx, [ebp - 1]
jmp 0x498e4e
lea edi, [esp + 0xa4]
xor eax, eax
call fcn.0046e65a
mov dword [esp + 0xa4], ebx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0xa8], ecx
lea ecx, [0x4fb310]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], 0x18
lea edi, [esp + 0xc8]
call fcn.0046e65b
lea ecx, [0x4e9ba0]
mov dword [esp], ecx
lea ecx, [esp + 0xa4]
mov dword [esp + 4], ecx
call fcn.004092e0
mov ecx, dword [esp + 8]
lea edx, [0x5208d4]
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], ecx
add esp, 0xbc
ret
test ecx, ecx
jl 0x498cd7
lea edi, [esp + 0xa4]
xor eax, eax
call fcn.0046e65a
mov dword [esp + 0xa4], ebx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0xa8], ecx
lea ecx, [0x5007dd]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], 0x31
lea edi, [esp + 0xc8]
call fcn.0046e65b
lea ecx, [0x4e9ba0]
mov dword [esp], ecx
lea ecx, [esp + 0xa4]
mov dword [esp + 4], ecx
call fcn.004092e0
mov ecx, dword [esp + 8]
lea edx, [0x5208d4]
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], ecx
add esp, 0xbc
ret
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], eax
lea ecx, [0x4fd523]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], 0x1e
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], edi
lea edi, [esp + 0xa4]
lea esi, [esp + 0x8c]
call fcn.0046eb34
lea edi, [esp + 0xc8]
xor eax, eax
call fcn.0046e65b
lea ecx, [0x4e9ba0]
mov dword [esp], ecx
lea ecx, [esp + 0xa4]
mov dword [esp + 4], ecx
call fcn.004092e0
mov ecx, dword [esp + 8]
lea edx, [0x5208d4]
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], ecx
add esp, 0xbc
ret
lea edi, [esp + 0x40]
mov eax, esi
lea esi, [esp + 0x30]
call fcn.0046eb48
movzx ecx, byte [esp + 0x47]
movzx edx, byte [esp + 0x46]
mov ebx, edx
shl edx, 8
or edx, ecx
shr ebx, 0x18
movzx ecx, byte [esp + 0x45]
mov ebp, ecx
shl ecx, 0x10
or ecx, edx
shr ebp, 0x10
or ebx, ebp
movzx edx, byte [esp + 0x44]
mov ebp, edx
shr edx, 8
or edx, ebx
shl ebp, 0x18
or ebp, ecx
movzx ecx, byte [esp + 0x43]
or ecx, edx
movzx edx, byte [esp + 0x42]
shl edx, 8
or edx, ecx
movzx ecx, byte [esp + 0x41]
shl ecx, 0x10
or ecx, edx
movzx edx, byte [esp + 0x40]
shl edx, 0x18
or edx, ecx
movzx ecx, byte [esp + 0x4f]
movzx ebx, byte [esp + 0x4e]
mov esi, ebx
shl ebx, 8
or ebx, ecx
shr esi, 0x18
movzx ecx, byte [esp + 0x4d]
mov edi, ecx
shr ecx, 0x10
or esi, ecx
shl edi, 0x10
or edi, ebx
movzx ecx, byte [esp + 0x4c]
mov ebx, ecx
shr ecx, 8
or ecx, esi
shl ebx, 0x18
or ebx, edi
movzx esi, byte [esp + 0x4b]
or esi, ecx
movzx ecx, byte [esp + 0x4a]
shl ecx, 8
or ecx, esi
movzx esi, byte [esp + 0x49]
shl esi, 0x10
or esi, ecx
movzx ecx, byte [esp + 0x48]
shl ecx, 0x18
or ecx, esi
mov dword [esp + 0x7c], ecx
lea edi, [esp + 0x8c]
mov esi, eax
xor eax, eax
call fcn.0046e65b
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], ebx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x98], ecx
mov ecx, dword [0x5d8c18]
mov dword [esp + 0x9c], ecx
lea edi, [esp]
mov eax, esi
lea esi, [esp + 0x8c]
call fcn.0046eb3e
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
call fcn.00499550
lea edi, [esp + 0x8c]
lea esi, [esp + 0x1c]
call fcn.0046eb3e
lea edi, [esp + 0xc8]
lea esi, [esp + 0x8c]
call fcn.0046eb3e
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
add esp, 0xbc
ret
movzx edx, byte [esp + eax + 0x30]
mov byte [esp + ebx + 0x40], dl
lea ebx, [eax - 1]
cmp ecx, ebx
jg 0x498e65
mov eax, ebx
sub ebx, ebp
cmp eax, 0x10
jae 0x498ec2
lea edx, [ebx + 0x10]
cmp edx, 0x10
jb 0x498e42
jmp 0x498eb6
mov eax, ecx
sub ecx, ebp
add ecx, 0x10
cmp ecx, 0x10
ja 0x498eac
cmp eax, ecx
ja 0x498ea7
lea ecx, [eax - 0x10]
lea edx, [ebp - 0x10]
neg edx
neg ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
test edx, edx
je 0x498cd7
lea eax, [esp + eax + 0x30]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0046eb80
mov esi, dword [esp + 0x50]
jmp 0x498cd7
call fcn.0046e540
mov edx, 0x10
call fcn.0046e500
mov eax, edx
mov ecx, 0x10
call fcn.0046e4e0
mov ecx, 0x10
call fcn.0046e4e0
inc ecx
mov esi, dword [esp + 0x50]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x64], ebp
mov ecx, dword [esp + 0x60]
mov ebp, dword [esp + 0x5c]
mov ebp, dword [esp + 0x58]
cmp edi, ebp
jle 0x498a57
movzx esi, byte [edx + ebp]
lea ecx, [esi - 0x30]
cmp cl, 9
ja 0x498f0f
mov esi, ebx
mov ebx, dword [esp + 0x64]
shl ebx, 4
movzx ecx, cl
add ebx, ecx
mov ecx, ebp
mov ebp, ebx
mov ebx, esi
jmp 0x498f54
lea ecx, [esi - 0x61]
cmp cl, 5
ja 0x498f35
mov ebx, dword [esp + 0x64]
shl ebx, 4
add esi, 0xffffffa9
xchg esi, eax
movzx eax, al
xchg esi, eax
add ebx, esi
mov ecx, ebp
mov ebp, ebx
mov ebx, dword [esp + 0xc0]
jmp 0x498f54
lea ecx, [esi - 0x41]
cmp cl, 5
ja 0x498a4f
mov ecx, ebp
mov ebp, dword [esp + 0x64]
shl ebp, 4
add esi, 0xffffffc9
xchg esi, eax
movzx eax, al
xchg esi, eax
add ebp, esi
cmp ecx, 3
jg 0x498ff6
cmp ebp, 0xffff
jbe 0x498ecc
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], eax
lea ecx, [0x4fc54e]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], 0x1b
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], edi
lea edi, [esp + 0xa4]
lea esi, [esp + 0x8c]
call fcn.0046eb34
lea edi, [esp + 0xc8]
xor eax, eax
call fcn.0046e65b
lea ecx, [0x4e9ba0]
mov dword [esp], ecx
lea ecx, [esp + 0xa4]
mov dword [esp + 4], ecx
call fcn.004092e0
mov ecx, dword [esp + 8]
lea edx, [0x5208d4]
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], ecx
add esp, 0xbc
ret
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], eax
lea ecx, [0x4fec64]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], 0x25
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], edi
lea edi, [esp + 0xa4]
lea esi, [esp + 0x8c]
call fcn.0046eb34
lea edi, [esp + 0xc8]
xor eax, eax
call fcn.0046e65b
lea ecx, [0x4e9ba0]
mov dword [esp], ecx
lea ecx, [esp + 0xa4]
mov dword [esp + 4], ecx
call fcn.004092e0
mov ecx, dword [esp + 8]
lea edx, [0x5208d4]
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], ecx
add esp, 0xbc
ret
test ecx, ecx
jge 0x49912c
mov eax, dword [esp + 0x5c]
cmp eax, 0xc
je 0x499130
mov dword [esp + 0x8c], ebx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x90], ecx
lea ecx, [0x5015c6]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], 0x44
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], edi
lea edi, [esp + 0xa4]
lea esi, [esp + 0x8c]
call fcn.0046eb34
lea edi, [esp + 0xc8]
xor eax, eax
call fcn.0046e65b
lea ecx, [0x4e9ba0]
mov dword [esp], ecx
lea ecx, [esp + 0xa4]
mov dword [esp + 4], ecx
call fcn.004092e0
mov ecx, dword [esp + 8]
lea edx, [0x5208d4]
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], ecx
add esp, 0xbc
ret
mov eax, dword [esp + 0x5c]
lea ebp, [eax + 4]
cmp ebp, 0x10
jg 0x499202
test esi, esi
je 0x49914c
mov edx, dword [esp + 0xc4]
sub edx, esi
dec edx
jmp 0x499153
mov edx, dword [esp + 0xc4]
cmp eax, ebp
ja 0x49951d
mov dword [esp + 0x78], ebp
mov dword [esp], ebx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 4], ecx
mov ebp, edx
sub edx, edi
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
lea edx, [eax - 0x10]
neg edx
mov ebp, edx
neg edx
sar edx, 0x1f
and edx, eax
lea eax, [esp + edx + 0x30]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 4
mov dword [esp + 0x18], ebp
call fcn.00498310
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4991cb
mov eax, dword [esp + 0xc4]
mov ebx, dword [esp + 0xc0]
mov esi, dword [esp + 0x50]
xor edi, edi
xor edx, edx
mov ebp, dword [esp + 0x78]
mov ecx, dword [esp + 0x60]
jmp 0x498b27
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x84], ecx
lea edi, [esp + 0xc8]
mov edx, eax
xor eax, eax
call fcn.0046e65b
mov dword [esp + 0xdc], edx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0xe0], ecx
add esp, 0xbc
ret
mov dword [esp + 0x8c], ebx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x90], ecx
lea ecx, [0x50160a]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], 0x45
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], edi
lea edi, [esp + 0xa4]
lea esi, [esp + 0x8c]
call fcn.0046eb34
lea edi, [esp + 0xc8]
xor eax, eax
call fcn.0046e65b
lea ecx, [0x4e9ba0]
mov dword [esp], ecx
lea ecx, [esp + 0xa4]
mov dword [esp + 4], ecx
call fcn.004092e0
mov ecx, dword [esp + 8]
lea edx, [0x5208d4]
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], ecx
add esp, 0xbc
ret
mov ebx, dword [esp + 0xc0]
mov edi, ecx
mov edx, ebp
mov ebp, dword [esp + 0x5c]
mov ecx, ebp
jmp 0x498b27
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], eax
lea ecx, [0x4fa61a]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], 0x16
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], ebp
lea edi, [esp + 0xa4]
lea esi, [esp + 0x8c]
call fcn.0046eb34
lea edi, [esp + 0xc8]
xor eax, eax
call fcn.0046e65b
lea ecx, [0x4e9ba0]
mov dword [esp], ecx
lea ecx, [esp + 0xa4]
mov dword [esp + 4], ecx
call fcn.004092e0
mov ecx, dword [esp + 8]
lea edx, [0x5208d4]
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], ecx
add esp, 0xbc
ret
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], eax
lea ecx, [0x4ff71d]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], 0x29
mov dword [esp + 0x9c], ebp
mov dword [esp + 0xa0], ebx
lea edi, [esp + 0xa4]
lea esi, [esp + 0x8c]
call fcn.0046eb34
lea edi, [esp + 0xc8]
xor eax, eax
call fcn.0046e65b
lea ecx, [0x4e9ba0]
mov dword [esp], ecx
lea ecx, [esp + 0xa4]
mov dword [esp + 4], ecx
call fcn.004092e0
mov ecx, dword [esp + 8]
lea edx, [0x5208d4]
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], ecx
add esp, 0xbc
ret
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], eax
lea ecx, [0x4fdd3f]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], 0x20
mov dword [esp + 0x9c], ebp
mov dword [esp + 0xa0], ebx
lea edi, [esp + 0xa4]
lea esi, [esp + 0x8c]
call fcn.0046eb34
lea edi, [esp + 0xc8]
xor eax, eax
call fcn.0046e65b
lea ecx, [0x4e9ba0]
mov dword [esp], ecx
lea ecx, [esp + 0xa4]
mov dword [esp + 4], ecx
call fcn.004092e0
mov ecx, dword [esp + 8]
lea edx, [0x5208d4]
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], ecx
add esp, 0xbc
ret
mov ebx, dword [esp + 0xc0]
mov edi, dword [esp + 0x54]
mov edx, ebp
mov ebp, dword [esp + 0x5c]
jmp 0x498b27
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], eax
lea ecx, [0x500fa3]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], 0x37
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], edi
lea edi, [esp + 0xa4]
lea esi, [esp + 0x8c]
call fcn.0046eb34
lea edi, [esp + 0xc8]
xor eax, eax
call fcn.0046e65b
lea ecx, [0x4e9ba0]
mov dword [esp], ecx
lea ecx, [esp + 0xa4]
mov dword [esp + 4], ecx
call fcn.004092e0
mov ecx, dword [esp + 8]
lea edx, [0x5208d4]
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], ecx
add esp, 0xbc
ret
xor eax, eax
mov ecx, eax
call fcn.0046e4e0
mov eax, ebx
mov ecx, edi
call fcn.0046e540
mov ecx, ebp
call fcn.0046e540
mov eax, ebp
mov ecx, edi
call fcn.0046e4e0
mov ecx, edx
call fcn.0046e540
call fcn.0046e500
nop
call fcn.0046d060
jmp fcn.004987e0