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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x499fb3
sub esp, 0x68
movzx edx, byte [esp + 0x7d]
test dl, dl
je 0x499f2f
mov eax, 4
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x6c]
mov dword [ebx], edx
mov ebp, dword [esp + 0x74]
mov dword [ebx + 4], ebp
mov dword [ebx + 8], 0
movzx edi, byte [esp + 0x7c]
xchg edi, eax
mov byte [ebx + 0xc], al
xchg edi, eax
mov edi, dword [esp + 0x78]
mov ecx, edx
lea edx, [edi + 0x15c]
mov esi, edx
sar edx, 0x1f
shr edx, 0x1d
lea edx, [edi + edx + 0x15c]
cmp edi, 0xfffffea4
jge 0x49975c
mov byte [esp + 0x84], 0
add esp, 0x68
ret
sar edx, 3
cmp edx, 0x57
jge 0x499750
mov dword [esp + 0x38], edx
shl edx, 3
sub esi, edx
cmp esi, 0x13
jge 0x499d37
lea edx, [esi - 0x13]
neg edx
cmp edx, 0x14
jae 0x499fa6
lea edi, [0xc6aae0]
lea edx, [edi + edx*8]
mov edi, dword [edx + 4]
cmp ebp, edi
sete bl
cmp dword [edx], ecx
seta dl
cmp ebp, edi
xchg ebp, ebx
setb bl
xchg ebp, ebx
and edx, ebx
or edx, ebp
test dl, dl
je 0x499d37
mov edx, dword [esp + 0x6c]
mov ebx, dword [edx + 4]
mov ebp, dword [edx]
cmp esi, 0x14
jae 0x499f9a
mov dword [esp + 0x64], ebp
lea edi, [0xc6aae0]
lea edi, [edi + esi*8]
mov ecx, ebx
mov ebx, dword [edi]
mov esi, eax
mov eax, ebx
mul ebp
mov edi, dword [edi + 4]
mov ebp, dword [esp + 0x6c]
mov dword [ebp], eax
imul ebx, ecx
add edx, ebx
mov ebx, dword [esp + 0x64]
imul edi, ebx
add edx, edi
mov dword [ebp + 4], edx
test eax, eax
sete bl
test edx, edx
xchg edi, ebx
sete bl
xchg edi, ebx
and edi, ebx
xchg edi, eax
test al, al
xchg edi, eax
je 0x499b8d
mov eax, dword [esp + 0x38]
cmp eax, 0x57
jae 0x499f50
mov dword [esp + 0x40], esi
shl eax, 4
lea ecx, [0xc78020]
mov edx, dword [ecx + eax + 4]
movzx ebx, byte [ecx + eax + 0xc]
mov esi, dword [ecx + eax + 8]
mov eax, dword [ecx + eax]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov byte [esp + 0x10], bl
call fcn.00499670
mov eax, dword [esp + 0x40]
test eax, eax
jle 0x499b86
lea edx, [eax + 1]
mov ebx, dword [esp + 0x6c]
mov ebp, dword [ebx + 4]
test ebp, ebp
xchg edi, ebx
sete bl
xchg edi, ebx
mov eax, ebx
mov ebx, dword [ebx]
test ebx, ebx
mov ecx, edx
sete dl
and edx, edi
test dl, dl
je 0x4999f4
xor edx, edx
cmp edx, 0x20
sbb ebx, ebx
lea ebp, [ecx + 4]
mov ecx, edx
shl ebp, cl
and ebp, ebx
mov edx, dword [esp + 0x80]
mov ebx, dword [edx + 8]
add ebx, 0xffffffc1
mov esi, dword [eax + 8]
cmp esi, ebx
jg 0x4999e8
sub ebx, esi
sub ebx, dword [edx]
lea edx, [ebx + 0x40]
mov dword [esp + 0x40], ebp
cmp edx, 0x20
sbb ebx, ebx
mov ecx, edx
mov esi, 1
shl esi, cl
and ebx, esi
mov esi, ebx
add ebx, 0xffffffff
mov dword [esp + 0x64], ebx
lea edi, [ecx - 1]
cmp edi, 0x20
sbb ebx, ebx
mov ecx, edi
mov eax, 1
shl eax, cl
and ebx, eax
mov dword [esp + 0x3c], ebx
sub ebx, ebp
mov dword [esp + 0x60], ebx
lea edi, [edx - 0x21]
mov dword [esp + 0x5c], edi
cmp edi, 0x20
sbb ebx, ebx
mov dword [esp + 0x58], ebx
xchg edi, ebx
neg ebx
xchg edi, ebx
mov dword [esp + 0x54], edi
cmp edi, 0x20
sbb eax, eax
mov dword [esp + 0x50], eax
add edx, 0xffffffe0
mov dword [esp + 0x4c], edx
neg edx
cmp edx, 0x20
sbb ebp, ebp
mov ebx, dword [esp + 0x4c]
cmp ebx, 0x20
sbb eax, eax
mov ecx, ebx
mov edi, 1
shl edi, cl
mov ecx, edx
mov ebx, 1
shr ebx, cl
and eax, edi
and ebx, ebp
or eax, ebx
add esi, 0xffffffff
adc eax, 0xffffffff
mov ecx, dword [esp + 0x5c]
mov edx, 1
shl edx, cl
mov ecx, dword [esp + 0x54]
mov ebx, 1
shr ebx, cl
mov ebp, dword [esp + 0x50]
and ebx, ebp
mov ebp, dword [esp + 0x58]
and ebp, edx
or ebp, ebx
mov dword [esp + 0x5c], ebp
mov edx, dword [esp + 0x40]
mov ebx, edx
sar edx, 0x1f
mov esi, dword [esp + 0x3c]
mov edi, esi
sub esi, ebx
sbb ebp, edx
mov ecx, edx
mov edx, dword [esp + 0x6c]
and eax, dword [edx + 4]
mov dword [esp + 0x34], eax
cmp ebp, eax
xchg ebp, ebx
setl bl
xchg ebp, ebx
sete al
mov esi, dword [esp + 0x64]
and esi, dword [edx]
mov edx, dword [esp + 0x60]
cmp edx, esi
setb dl
and edx, eax
or edx, ebp
test dl, dl
je 0x4999d0
add edi, ebx
mov eax, dword [esp + 0x5c]
adc eax, ecx
mov ecx, dword [esp + 0x34]
cmp ecx, eax
setl al
sete cl
cmp esi, edi
setb dl
and edx, ecx
or edx, eax
test dl, dl
jne 0x4999dc
mov byte [esp + 0x84], 1
add esp, 0x68
ret
mov byte [esp + 0x84], 0
add esp, 0x68
ret
mov ebx, dword [edx]
lea edx, [ebx - 0x3f]
neg edx
jmp 0x4998b2
cmp ebp, 1
seta dl
xchg edi, ebx
sete bl
xchg edi, ebx
test ebx, ebx
mov esi, ebx
setae bl
nop
and ebx, edi
or edx, ebx
test dl, dl
je 0x499b79
mov edx, ebp
xor ebx, ebx
mov edi, 0x20
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x64], edx
test ebx, ebx
seta dl
xchg edi, ebx
sete bl
xchg edi, ebx
cmp ebp, 0x10000
setae bl
and ebx, edi
or ebx, edx
test bl, bl
je 0x499b6a
shr ebp, 0x10
mov edx, dword [esp + 0x1c]
mov ebx, edx
shl edx, 0x10
or edx, ebp
shr ebx, 0x10
mov ebp, dword [esp + 0x30]
add ebp, 0x10
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], ebp
test ebx, ebx
xchg edi, ebx
seta bl
xchg edi, ebx
xchg ebp, ebx
sete bl
xchg ebp, ebx
cmp edx, 0x100
setae bl
and ebx, ebp
or ebx, edi
test bl, bl
je 0x499b5b
shr edx, 8
mov ebx, dword [esp + 0x1c]
mov ebp, ebx
shl ebx, 0x18
or ebx, edx
shr ebp, 8
mov edx, dword [esp + 0x30]
add edx, 8
test ebp, ebp
jne 0x499f42
cmp ebx, 0x100
jae 0x499f36
mov dword [esp + 0x48], ecx
mov dword [esp + 0x60], esi
lea ebp, [0xc6bd20]
movzx ebx, byte [ebp + ebx]
mov dword [esp + 0x44], ebx
lea ebp, [ebx + edx - 0x40]
xchg ebp, ebx
neg ebx
xchg ebp, ebx
cmp ebp, 0x20
sbb edi, edi
mov ecx, ebp
shl esi, cl
and esi, edi
mov dword [eax], esi
lea esi, [ecx - 0x20]
mov dword [esp + 0x5c], esi
cmp esi, 0x20
sbb ebx, ebx
mov dword [esp + 0x58], ebx
xchg esi, ebx
neg ebx
xchg esi, ebx
cmp esi, 0x20
sbb ebx, ebx
mov dword [esp + 0x54], ebx
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x60]
shl ebx, cl
mov dword [esp + 0x5c], ebx
mov ecx, esi
mov ebx, dword [esp + 0x60]
shr ebx, cl
mov ecx, ebp
mov esi, dword [esp + 0x64]
shl esi, cl
and esi, edi
mov edi, dword [esp + 0x54]
and ebx, edi
or ebx, esi
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x58]
and esi, edi
or esi, ebx
mov dword [eax + 4], esi
mov ebx, dword [eax + 8]
mov esi, dword [esp + 0x44]
add esi, edx
lea ebx, [ebx + esi - 0x40]
mov dword [eax + 8], ebx
mov ecx, dword [esp + 0x48]
mov edx, ebp
jmp 0x499885
mov ebx, edx
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
jmp 0x499aa8
mov edx, ebp
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x30]
jmp 0x499a63
mov edx, ebp
mov ebp, esi
mov ebx, edx
xor edi, edi
jmp 0x499a1e
mov edx, eax
jmp 0x49985e
test eax, eax
setae bl
cmp edx, 1
xchg edi, ebx
sete bl
xchg edi, ebx
mov ecx, ebp
xchg ebp, ebx
seta bl
xchg ebp, ebx
nop
and edi, ebx
or ebp, edi
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x499d2a
mov ebx, edx
xor ebp, ebp
mov edi, 0x20
mov dword [esp + 0x14], ebp
mov dword [esp + 0x64], ebx
mov dword [esp + 0x28], edi
test ebp, ebp
sete bl
xchg edi, ebx
seta bl
xchg edi, ebx
cmp edx, 0x10000
xchg ebp, ebx
setae bl
xchg ebp, ebx
and ebp, ebx
or edi, ebp
xchg edi, eax
test al, al
xchg edi, eax
je 0x499d1b
shr edx, 0x10
mov ebx, dword [esp + 0x14]
mov ebp, ebx
shl ebx, 0x10
or ebx, edx
shr ebp, 0x10
mov edx, dword [esp + 0x28]
add edx, 0x10
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], edx
test ebp, ebp
xchg edi, ebx
sete bl
xchg edi, ebx
seta dl
cmp ebx, 0x100
xchg ebp, ebx
setae bl
xchg ebp, ebx
and ebp, edi
or ebp, edx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x499d0c
shr ebx, 8
mov edx, dword [esp + 0x14]
mov ebp, edx
shl edx, 0x18
or edx, ebx
shr ebp, 8
mov ebx, dword [esp + 0x28]
add ebx, 8
test ebp, ebp
jne 0x499f8c
cmp edx, 0x100
jae 0x499f80
mov dword [esp + 0x28], ebx
mov dword [esp + 0x60], eax
lea edi, [0xc6bd20]
movzx edx, byte [edx + edi]
lea edi, [edx + ebx - 0x40]
xchg edi, ebx
neg ebx
xchg edi, ebx
mov dword [esp + 0x24], edi
cmp edi, 0x20
mov ebp, edx
sbb edx, edx
mov dword [esp + 0x5c], edx
mov ecx, edi
shl eax, cl
and eax, edx
mov ebx, dword [esp + 0x6c]
mov dword [ebx], eax
mov eax, ebx
lea ebx, [ecx - 0x20]
mov dword [esp + 0x58], ebx
neg ebx
cmp ebx, 0x20
sbb edx, edx
mov edi, dword [esp + 0x58]
cmp edi, 0x20
sbb edi, edi
mov dword [esp + 0x54], edi
mov ecx, ebx
mov edi, dword [esp + 0x60]
mov ebx, edi
shr edi, cl
and edi, edx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x64]
shl edx, cl
mov ecx, ebx
mov ebx, dword [esp + 0x5c]
and edx, ebx
or edx, edi
mov ebx, ecx
mov ecx, dword [esp + 0x58]
shl ebx, cl
mov edi, dword [esp + 0x54]
and ebx, edi
or ebx, edx
mov dword [eax + 4], ebx
mov edx, dword [eax + 8]
mov ebx, dword [esp + 0x28]
add ebx, ebp
lea edx, [edx + ebx - 0x40]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x38]
cmp edx, 0x57
mov eax, edx
mov ebp, dword [esp + 0x6c]
jmp 0x499814
mov ebp, dword [esp + 0x14]
mov edx, ebx
mov ebx, dword [esp + 0x28]
jmp 0x499c4f
mov ebx, edx
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
jmp 0x499c08
mov ebx, edx
mov edx, eax
mov ebp, ebx
xor edi, edi
jmp 0x499bbd
mov edx, dword [esp + 0x6c]
mov ebx, dword [edx + 4]
test ebx, ebx
xchg ebp, ebx
sete bl
xchg ebp, ebx
mov edi, dword [edx]
test edi, edi
mov ecx, edx
sete dl
and edx, ebp
test dl, dl
je 0x499dad
cmp esi, 8
jae 0x499f5a
mov dword [esp + 0x40], eax
shl esi, 4
lea eax, [0xc6a240]
mov edx, dword [eax + esi]
mov ebx, dword [eax + esi + 4]
movzx ebp, byte [eax + esi + 0xc]
mov eax, dword [eax + esi + 8]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
xchg ebp, eax
mov byte [esp + 0x10], al
xchg ebp, eax
call fcn.00499670
mov eax, dword [esp + 0x40]
lea esi, [eax + 4]
mov eax, dword [esp + 0x38]
cmp eax, 0x57
mov ebp, dword [esp + 0x6c]
jmp 0x499814
mov dword [esp + 0x64], ebx
test edi, edi
setae dl
cmp ebx, 1
xchg ebp, ebx
sete bl
xchg ebp, ebx
seta bl
nop
and ebp, edx
or ebx, ebp
test bl, bl
je 0x499f22
xor edx, edx
mov ebx, dword [esp + 0x64]
mov ebp, 0x20
mov dword [esp + 0x60], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], ebp
test edx, edx
xchg edi, ebx
sete bl
xchg edi, ebx
xchg ebp, ebx
seta bl
xchg ebp, ebx
cmp ebx, 0x10000
setae dl
and edx, edi
or ebp, edx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x499f13
shr ebx, 0x10
mov edx, dword [esp + 0x18]
mov ebp, edx
shl edx, 0x10
or edx, ebx
shr ebp, 0x10
mov ebx, dword [esp + 0x2c]
add ebx, 0x10
mov dword [esp + 0x18], ebp
mov dword [esp + 0x2c], ebx
test ebp, ebp
xchg edi, ebx
sete bl
xchg edi, ebx
seta bl
cmp edx, 0x100
xchg ebp, ebx
setae bl
xchg ebp, ebx
and ebp, edi
or ebp, ebx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x499f04
shr edx, 8
mov ebx, dword [esp + 0x18]
mov ebp, ebx
shl ebx, 0x18
or ebx, edx
shr ebp, 8
mov edx, dword [esp + 0x2c]
add edx, 8
test ebp, ebp
jne 0x499f72
cmp ebx, 0x100
jae 0x499f66
lea ebp, [0xc6bd20]
movzx ebx, byte [ebx + ebp]
lea edx, [ebx + edx - 0x40]
mov dword [esp + 0x48], edx
neg edx
mov dword [esp + 0x20], edx
cmp edx, 0x20
sbb edi, edi
mov dword [esp + 0x5c], edi
mov ecx, edx
mov ebp, dword [esp + 0x60]
shl ebp, cl
and ebp, edi
mov ebx, dword [esp + 0x6c]
mov dword [ebx], ebp
lea ebp, [ecx - 0x20]
mov dword [esp + 0x58], ebp
cmp ebp, 0x20
sbb ebx, ebx
xchg ebp, ebx
neg ebx
xchg ebp, ebx
cmp ebp, 0x20
sbb edi, edi
mov ecx, ebp
mov edx, dword [esp + 0x60]
mov ebp, edx
shr edx, cl
and edx, edi
mov ecx, dword [esp + 0x58]
shl ebp, cl
and ebp, ebx
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x64]
shl ebx, cl
mov edi, dword [esp + 0x5c]
and ebx, edi
or ebx, edx
or ebp, ebx
mov ecx, dword [esp + 0x6c]
mov dword [ecx + 4], ebp
mov edx, dword [esp + 0x48]
mov dword [ecx + 8], edx
jmp 0x499d56
mov ebx, edx
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
jmp 0x499e6d
mov edx, ebx
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
jmp 0x499e26
mov edx, dword [esp + 0x64]
mov ebx, edi
xor ebp, ebp
jmp 0x499ddb
xor eax, eax
jmp 0x49970b
mov eax, ebx
mov ecx, 0x100
call fcn.0045a140
mov esi, ebp
mov eax, ebx
mov ecx, 0x100
call fcn.0045a220
mov ecx, 0x57
call fcn.0045a130
mov eax, esi
mov ecx, 8
call fcn.0045a130
mov eax, ebx
mov ecx, 0x100
call fcn.0045a140
mov esi, ebp
mov eax, ebx
mov ecx, 0x100
call fcn.0045a220
mov eax, edx
mov ecx, 0x100
call fcn.0045a140
mov esi, ebp
mov eax, edx
mov ecx, 0x100
call fcn.0045a220
mov eax, esi
mov ecx, 0x14
call fcn.0045a130
mov eax, edx
mov ecx, 0x14
call fcn.0045a130
nop
call fcn.00458870
jmp fcn.004996e0