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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x24], edx
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0
mov edx, dword [esi + 8]
mov dword [esp + 0x10], edx
cmp dword [edi + 0x2c], 0
mov eax, dword [edi + 0x28]
lea ecx, [edx + 0x74]
mov dword [esp + 0x20], 0
lea ebx, [edx + 0x78]
mov byte [edi], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ebx
jle 0x4ec787
mov eax, dword [eax]
mov dword [esp + 0x34], 0
test dword [eax + 4], 0x1000000
mov ebx, dword [eax + 0x14]
mov dword [esp + 0x3c], ebx
je 0x4ec484
mov eax, dword [eax + 0x2c]
mov edi, dword [eax + 0x28]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 0
je 0x4ec46d
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
test byte [eax + 4], 0x20
je 0x4ec46d
cmp dword [esp + 0x28], 0
je 0x4ec46d
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4ec419
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x14], eax
mov ecx, dword [ecx]
cmp dword [edx + 0x78], ecx
jg 0x4ec43a
mov ecx, dword [esp + 0x10]
mov edx, 0x4f
push 0
push eax
push dword [esp + 0x30]
call fcn.00495eb0
add esp, 0xc
jmp 0x4ec46d
lea eax, [ecx + 1]
mov dword [edx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x70]
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x4f
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
dec dword [esi + 0x38]
mov eax, dword [esi + 0x38]
push 0x10
push eax
push edi
push esi
mov dword [esp + 0x44], eax
call fcn.004b5da0
add esp, 0x10
test ebx, ebx
je 0x4ec4f6
mov ebx, dword [ebx]
mov dword [esp + 0x30], ebx
cmp ebx, 1
jne 0x4ec4b3
mov al, byte [esi + 0x13]
test al, al
jne 0x4ec4a2
inc dword [esi + 0x2c]
mov edi, dword [esi + 0x2c]
jmp 0x4ec4db
dec al
mov byte [esi + 0x13], al
movzx eax, al
mov edi, dword [esi + eax*4 + 0x98]
jmp 0x4ec4db
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x18], edx
cmp ebx, ecx
jg 0x4ec4d0
lea eax, [edx + ebx]
sub ecx, ebx
mov dword [esi + 0x20], eax
mov edi, edx
mov dword [esi + 0x1c], ecx
jmp 0x4ec4df
mov eax, dword [esi + 0x2c]
lea edi, [eax + 1]
add eax, ebx
mov dword [esi + 0x2c], eax
mov dword [esp + 0x18], edi
mov ebx, dword [esp + 0x3c]
mov ecx, esi
push 1
push 0
push edi
mov edx, ebx
call fcn.004b5500
add esp, 0xc
jmp 0x4ec504
xor edi, edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0xc], 0
jl 0x4ec53e
test ebx, ebx
je 0x4ec53e
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4ec524
dec dword [esi + 0x38]
mov eax, dword [esi + 0x38]
mov dword [esp + 0x34], eax
mov edx, dword [ebp + 0xc]
push edi
push ebx
push eax
push dword [ecx + 0xc]
mov ecx, esi
call fcn.004e2ca0
mov ecx, dword [esp + 0x2c]
add esp, 0x10
mov dword [ecx + 0xc], eax
mov eax, dword [ecx + 4]
test byte [eax + 4], 0x20
je 0x4ec63c
xor edi, edi
add ebx, 8
cmp edi, dword [esp + 0x30]
jge 0x4ec56f
mov edx, dword [ebx]
mov ecx, esi
call fcn.004acb00
inc edi
mov dword [esp + 0x3c], eax
add ebx, 0x14
test eax, eax
je 0x4ec550
mov edi, eax
jmp 0x4ec574
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4ec58e
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x24], eax
je 0x4ec58e
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
mov edx, dword [ecx]
cmp dword [ebx], edx
mov ebx, dword [esp + 0x10]
jg 0x4ec5b8
push 0
push 0
push eax
mov edx, 0x54
mov ecx, ebx
call fcn.00495eb0
add esp, 0xc
mov edx, eax
jmp 0x4ec5ee
lea eax, [edx + 1]
mov dword [ecx], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x70]
mov ebx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x54
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx]
cmp byte [ecx + 0x57], 0
je 0x4ec606
push edi
mov edx, 0xfffffffe
call fcn.004969c0
add esp, 4
jmp 0x4ec640
test edx, edx
jns 0x4ec60e
mov edx, dword [ebx + 0x74]
dec edx
mov eax, dword [ebx + 0x70]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x4ec62f
push 0xfffffffffffffffe
push edi
mov edx, eax
mov ecx, ebx
call fcn.00496c10
add esp, 8
jmp 0x4ec640
test edi, edi
je 0x4ec640
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0xfe
jmp 0x4ec640
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x74]
mov edi, dword [esp + 0x18]
mov edx, dword [eax + 8]
cmp dword [ebx + 0x78], ecx
jg 0x4ec66b
push edx
push edi
push 0
mov edx, 0xa1
mov ecx, ebx
call fcn.00495eb0
add esp, 0xc
add ebx, 0x70
jmp 0x4ec699
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
add ebx, 0x70
mov dword [eax + ecx*4], 0xa1
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ecx]
mov edx, dword [eax + 4]
cmp byte [ecx + 0x57], 0
je 0x4ec6bc
push edx
mov edx, 0xfffffff8
call fcn.004969c0
add esp, 4
jmp 0x4ec6d0
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
lea ecx, [eax + eax*4]
mov eax, dword [ebx]
mov byte [eax + ecx*4 - 0x13], 0xf8
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
test ecx, ecx
jle 0x4ec6eb
mov eax, dword [esp + 0x30]
lea ecx, [ecx + ecx*4]
movzx edx, al
mov eax, dword [ebx]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [esp + 0x30]
cmp eax, 1
jne 0x4ec70e
test edi, edi
je 0x4ec719
mov al, byte [esi + 0x13]
cmp al, 8
jae 0x4ec719
movzx eax, al
mov dword [esi + eax*4 + 0x98], edi
inc byte [esi + 0x13]
jmp 0x4ec719
cmp eax, dword [esi + 0x1c]
jle 0x4ec719
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edi
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
test edi, edi
je 0x4ec74a
mov ecx, dword [edx + 0xc]
not edi
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4ec741
push edi
call fcn.004966d0
mov edx, dword [esp + 0x14]
add esp, 4
jmp 0x4ec74a
mov ecx, dword [ecx + 0x40]
mov eax, dword [edx + 0x74]
mov dword [ecx + edi*4], eax
mov ecx, dword [esp + 0x38]
mov edi, dword [ebp + 8]
inc ecx
mov eax, dword [esp + 0x1c]
add eax, 0x14
mov dword [esp + 0x38], ecx
mov dword [esp + 0x1c], eax
cmp ecx, dword [edi + 0x2c]
lea ecx, [edx + 0x74]
jl 0x4ec3c6
cmp dword [esp + 0x14], 0
mov ecx, dword [esp + 0x24]
jne 0x4ec782
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
jmp 0x4ec78e
lea eax, [edi + 0x24]
jmp 0x4ec7c2
mov dword [esp + 0x2c], ebx
lea ebx, [edx + 0x70]
mov eax, dword [ebp + 8]
mov edi, ecx
add eax, 0x24
mov dword [esp + 0x34], ebx
mov edx, eax
mov dword [esp + 0x24], edx
cmp dword [eax], 0
je 0x4ec83c
cmp dword [esp + 0x28], 0
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], edx
mov edx, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], ebx
je 0x4ec83c
mov dword [esp + 0x24], eax
mov edi, ecx
mov eax, dword [ecx]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x34], ebx
cmp dword [eax], edx
mov edx, dword [esp + 0x24]
jg 0x4ec805
mov ecx, dword [esp + 0x10]
mov edx, 0x12
push 0
push 0
push dword [esp + 0x1c]
call fcn.00495eb0
mov edx, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x20], eax
jmp 0x4ec83c
mov eax, dword [esp + 0x20]
inc eax
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [ebx]
mov ebx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x12
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [eax + 0x1c]
cmp dword [edx], ebx
jle 0x4ec877
lea edi, [eax + 4]
nop dword [eax + eax]
push dword [edi + 8]
mov edx, dword [edi]
mov ecx, esi
call fcn.004b5450
mov eax, dword [esp + 0x28]
lea edi, [edi + 0x14]
inc ebx
add esp, 4
cmp ebx, dword [eax]
jl 0x4ec850
mov eax, dword [esp + 0x10]
lea edi, [eax + 0x74]
lea edx, [eax + 0x70]
jmp 0x4ec87f
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov ebx, dword [esp + 0x20]
mov byte [ecx], 0
test ebx, ebx
je 0x4ec8c6
mov esi, dword [edi]
lea ecx, [esi - 1]
cmp ebx, ecx
jne 0x4ec89f
mov dword [edi], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax]
cmp byte [eax + 0x57], 0
je 0x4ec8b6
mov eax, 0x5d1b70
mov dword [eax + 8], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx]
test ebx, ebx
cmovns ecx, ebx
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret