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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], edi
mov esi, dword [edi + 8]
mov eax, dword [esi + 0x74]
dec dword [edi + 0x38]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4e9b48
mov ecx, dword [esi + 0x74]
lea edx, [esi + 0x70]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], edx
cmp dword [esi + 0x78], ecx
jg 0x4e98e5
push 0
push 0
push eax
mov edx, 0x14
mov ecx, esi
call fcn.00497c60
add esp, 0xc
mov dword [esp + 0x28], eax
jmp 0x4e991d
mov ebx, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov dword [esp + 0x10], edx
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [ebp + 8]
mov dword [eax + ecx*4], 0x14
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x4e9926
inc dword [edx]
mov eax, dword [ebx + 0x10]
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x14]
inc eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x30], eax
cmp dword [esi + 0x78], ecx
jg 0x4e996c
mov ebx, dword [esp + 0x24]
mov edx, 0x59
push ebx
push dword [esp + 0x18]
mov ecx, esi
push eax
call fcn.00497c60
mov edx, dword [ebp + 0x18]
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x1c], ecx
jmp 0x4e99a6
mov ebx, dword [esp + 0x30]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x59
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esi]
mov eax, ecx
cmp byte [ebx + 0x57], 0
je 0x4e99c2
push edx
mov edx, 0xfffffff7
mov ecx, ebx
call fcn.00498770
add esp, 4
jmp 0x4e99f9
test ecx, ecx
jns 0x4e99ca
mov eax, dword [esi + 0x74]
dec eax
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x4e99ee
push 0xfffffffffffffff7
push edx
mov edx, eax
mov ecx, esi
call fcn.004989c0
add esp, 8
jmp 0x4e99f9
test edx, edx
je 0x4e99f9
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xf7
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x74]
add eax, 2
mov ebx, dword [ebp + 8]
mov dword [esp + 0x30], eax
cmp dword [esi + 0x78], ecx
jg 0x4e9a26
push eax
push dword [esp + 0x1c]
mov edx, 0x10
mov ecx, esi
push eax
call fcn.00497c60
add esp, 0xc
jmp 0x4e9a5b
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov ebx, dword [esp + 0x30]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x74], eax
mov eax, dword [edx]
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [eax + ecx*4], 0x10
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov ecx, dword [esi + 0x74]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
cmp byte [eax + 0x57], 0
je 0x4e9a75
mov eax, 0x5d4b70
jmp 0x4e9a8d
lea eax, [ecx - 1]
mov ecx, dword [esp + 0x28]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [edx]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x30]
mov edx, dword [ebx + 0x10]
mov dword [eax + 8], ecx
dec edx
mov ecx, dword [esi + 0x74]
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x30], eax
cmp dword [esi + 0x78], ecx
jg 0x4e9aba
push edx
push dword [esp + 0x18]
mov edx, 0x4f
mov ecx, esi
push eax
call fcn.00497c60
add esp, 0xc
jmp 0x4e9aef
mov ebx, dword [esp + 0x30]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [ebp + 8]
mov dword [eax + ecx*4], 0x4f
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4e9b0f
push 0
push dword [ebp + 0x14]
mov edx, 0x47
mov ecx, esi
push 1
call fcn.00497c60
add esp, 0xc
jmp 0x4e9b44
mov edx, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x20]
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
je 0x4e9b59
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edx + 0xc]
test edx, edx
jle 0x4e9bb2
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4e9b80
push 1
push dword [esp + 0x1c]
mov ecx, esi
push edx
mov edx, 0x31
call fcn.00497c60
add esp, 0xc
jmp 0x4e9bb2
mov ebx, dword [ebp + 8]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x31
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 1
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ecx]
add eax, 0xfffffff6
cmp eax, 3
ja case.default.0x4e9bc4
jmp dword [eax*4 + 0x4ea118]
mov cl, byte [edi + 0x13]
test cl, cl
jne 0x4e9be5
mov edx, dword [edi + 0x2c]
lea ecx, [edi + 0x2c]
inc edx
mov dword [ecx], edx
inc dword [ecx]
mov eax, dword [ecx]
mov dword [esp + 0x10], edx
jmp 0x4e9c19
sub cl, 1
movzx eax, cl
mov byte [edi + 0x13], cl
mov edx, dword [edi + eax*4 + 0x98]
lea eax, [edi + 0x2c]
mov dword [esp + 0x10], edx
jne 0x4e9c06
mov ecx, eax
inc dword [ecx]
mov eax, dword [ecx]
jmp 0x4e9c19
dec cl
mov dword [esp + 0x10], edx
movzx eax, cl
mov byte [edi + 0x13], cl
mov eax, dword [edi + eax*4 + 0x98]
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x10]
lea ebx, [esi + 0x78]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x30], eax
cmp dword [ebx], ecx
jg 0x4e9c4d
push edx
mov edx, dword [esp + 0x2c]
mov ecx, esi
push eax
push edx
mov edx, 0x60
call fcn.00497c60
add esp, 0xc
jmp 0x4e9c80
mov edx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x60
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x74]
mov edx, dword [eax + 4]
cmp dword [ebx], ecx
jg 0x4e9ca9
push 0
push dword [esp + 0x18]
mov ecx, esi
push edx
mov edx, 0x7e
call fcn.00497c60
mov edx, dword [esp + 0x20]
add esp, 0xc
jmp 0x4e9cd8
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x7e
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x74]
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
cmp dword [ebx], ecx
jg 0x4e9d00
push edx
push dword [esp + 0x14]
mov edx, 0x7f
mov ecx, esi
push eax
call fcn.00497c60
add esp, 0xc
jmp 0x4e9d33
mov edx, dword [esp + 0x30]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x7f
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x74]
mov edx, dword [esp + 0x10]
test eax, eax
jle 0x4e9d52
lea ecx, [eax + eax*4]
mov edi, 8
mov eax, dword [esi + 0x70]
mov word [eax + ecx*4 - 0x12], di
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4e9d6e
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x4e9d6e
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
test edx, edx
je 0x4ea034
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x4ea034
movzx eax, al
mov dword [edi + eax*4 + 0x98], edx
inc byte [edi + 0x13]
jmp 0x4ea034
mov al, byte [edi + 0x13]
test al, al
jne 0x4e9da2
inc dword [edi + 0x2c]
mov edx, dword [edi + 0x2c]
jmp 0x4e9db1
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov edx, dword [edi + eax*4 + 0x98]
mov eax, dword [ebx + 0x10]
push eax
push dword [ecx + 0x14]
mov dword [esp + 0x1c], edx
mov ecx, esi
push edx
push eax
push dword [ebx + 0xc]
mov edx, 0x60
call fcn.00498000
mov eax, dword [ebx + 0x10]
add esp, 0x14
mov edx, dword [ebx + 0xc]
lea ebx, [esi + 0x78]
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
cmp dword [ebx], ecx
jg 0x4e9e0f
push edx
push dword [esp + 0x18]
mov edx, 0x89
mov ecx, esi
push eax
call fcn.00497c60
add esp, 0xc
mov ecx, eax
jmp 0x4e9e46
mov edx, dword [esp + 0x30]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0x89
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x28]
mov eax, dword [esi]
mov edx, dword [esp + 0x14]
cmp byte [eax + 0x57], 0
jne 0x4e9d6e
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 0x10], edx
mov edx, dword [esp + 0x14]
mov byte [eax + ecx*4 + 1], 0xfd
jmp 0x4e9d6e
mov edi, dword [edi + 8]
mov eax, dword [ecx + 4]
mov edx, dword [ebx + 0x10]
mov ebx, dword [ebx + 0xc]
mov ecx, dword [edi + 0x74]
mov dword [esp + 0x30], eax
cmp dword [edi + 0x78], ecx
jg 0x4e9ea1
push edx
push eax
push ebx
mov edx, 0x4e
mov ecx, edi
call fcn.00497c60
add esp, 0xc
jmp 0x4ea031
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov edi, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x4e
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
jmp 0x4ea029
mov edx, dword [ecx + 0xc]
test edx, edx
jne 0x4e9f35
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x30], eax
cmp eax, 1
jne 0x4e9efc
mov al, byte [edi + 0x13]
test al, al
jne 0x4e9eeb
inc dword [edi + 0x2c]
mov edx, dword [edi + 0x2c]
jmp 0x4e9f2c
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov edx, dword [edi + eax*4 + 0x98]
jmp 0x4e9f2c
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x20]
cmp eax, ecx
jg 0x4e9f19
add eax, edx
sub ecx, dword [ebx + 0x10]
mov dword [edi + 0x20], eax
mov eax, ecx
mov dword [esp + 0x30], ecx
mov dword [edi + 0x1c], eax
jmp 0x4e9f29
mov eax, dword [edi + 0x2c]
mov ebx, dword [ebp + 8]
lea edx, [eax + 1]
add eax, dword [esp + 0x30]
mov dword [edi + 0x2c], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x10]
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x10], eax
mov edi, dword [edi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [edi + 0x74]
cmp dword [edi + 0x78], ecx
jg 0x4e9f5a
push eax
mov eax, dword [ebx + 0xc]
mov ecx, edi
push edx
push eax
mov edx, 0x4e
call fcn.00497c60
add esp, 0xc
jmp 0x4e9f87
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov edi, dword [ebx + 0xc]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebx + 0x10]
mov dword [eax + ecx*4], 0x4e
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebp + 0xc]
lea ebx, [esi + 0x78]
mov ecx, dword [esi + 0x74]
mov edx, dword [eax + 4]
cmp dword [ebx], ecx
jg 0x4e9fb0
push 0
push 0
push edx
mov edx, 0xe
mov ecx, esi
call fcn.00497c60
add esp, 0xc
jmp 0x4ea034
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4ea034
mov edx, dword [ebx + 0x10]
mov edi, dword [ebx + 0xc]
lea ebx, [esi + 0x78]
mov ecx, dword [esi + 0x74]
cmp dword [ebx], ecx
jg 0x4ea006
push 0
push edx
push edi
mov edx, 0x53
mov ecx, esi
call fcn.00497c60
add esp, 0xc
jmp 0x4ea034
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x53
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
lea ebx, [esi + 0x78]
mov edx, dword [esp + 0x20]
mov edx, dword [edx + 8]
test edx, edx
je 0x4ea08c
mov ecx, dword [esi + 0x74]
cmp dword [ebx], ecx
jg 0x4ea05d
push 0
push dword [ebp + 0x1c]
mov ecx, esi
push edx
mov edx, 0x3c
call fcn.00497c60
add esp, 0xc
jmp 0x4ea08c
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x3c
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 0xc], 0
lea ecx, [eax + ecx*4]
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 0x10], 0
mov dword [ecx + 8], eax
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x18]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4ea0aa
push edx
mov edx, esi
call fcn.00498480
add esp, 4
jmp 0x4ea0b3
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
mov ecx, dword [esi + 0x74]
cmp dword [ebx], ecx
jg 0x4ea0db
push 0
push 0
push dword [ebp + 0x10]
mov edx, 0x43
mov ecx, esi
call fcn.00497c60
mov eax, dword [esp + 0x40]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
pop edi
pop esi
mov dword [eax + ecx*4], 0x43
lea edx, [eax + ecx*4]
mov ecx, dword [ebp + 0x10]
mov dword [edx + 8], 0
mov eax, dword [esp + 0x2c]
mov dword [edx + 4], ecx
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
pop ebx
mov esp, ebp
pop ebp
ret