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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [0x53a090]
xor eax, esp
mov dword [esp + 0xd0], eax
mov eax, dword [ebp + 0xc]
push ebx
mov eax, dword [eax]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x6c], eax
mov eax, dword [esi]
push 0x1f
mov dword [esp + 0x68], ecx
mov dword [esi + 0xfbc], 0x1f
mov ecx, dword [eax]
push edi
push eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x68], esi
call dword [ecx + 0x2c]
mov eax, dword [esi]
mov dword [esi + 0x1f6c], edi
mov ecx, dword [eax]
push edi
push eax
xor bl, bl
mov dword [esp + 0x68], 0xffffffff
call dword [ecx + 0x14]
test eax, eax
jle 0x4ec0fa
mov ecx, dword [esi]
dec eax
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x24]
mov esi, eax
jmp 0x4ec0fc
xor esi, esi
mov ecx, dword [esp + 0x5c]
push 0x1f
push ecx
push dword [ebp + 8]
lea ecx, [esp + 0x1c]
push dword [esp + 0x74]
push edi
call fcn.004d8ad0
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x18]
jae 0x4ec73d
xor edi, edi
cmp byte [esp + 0x3c], 0
je 0x4ec151
mov edi, dword [esp + 0x5c]
push dword [esp + 0x2c]
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ecx, dword [edi]
push esi
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x28]
xor edi, edi
mov dword [esp + 0x60], 0xffffffff
jmp 0x4ec158
cmp dword [esp + 0x60], 0xffffffff
jne 0x4ec16f
mov eax, dword [esp + 0x48]
cmp eax, 0x20
je 0x4ec16f
cmp eax, 9
jl 0x4ec16b
cmp eax, 0xd
jle 0x4ec16f
mov dword [esp + 0x60], edi
cmp dword [esp + 0x40], 6
jne 0x4ec23e
cmp dword [esp + 0x44], 0x2e
jne 0x4ec216
mov eax, dword [esp + 0x48]
cmp eax, 0x2a
je 0x4ec1e1
cmp eax, 0x2f
je 0x4ec1e1
cmp eax, 0x5c
je 0x4ec1e1
cmp eax, 0x5e
je 0x4ec1e1
cmp eax, 0x27
jne 0x4ec1b4
push 0
lea ecx, [esp + 0x14]
call fcn.004d8d90
mov bl, 1
jmp 0x4ec4c6
cmp dword [esp + 0x48], 0x2e
jne 0x4ec1d1
cmp dword [esp + 0x50], 0x2e
jne 0x4ec1d1
mov dword [esp + 0x40], 1
xor bl, bl
jmp 0x4ec6b1
push 0
lea ecx, [esp + 0x14]
call fcn.004d8d60
jmp 0x4ec4c6
lea ecx, [esp + 0x10]
call fcn.004d8c70
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x1c], ecx
push dword [esp + 0x40]
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
mov dword [esp + 0x40], 0
xor bl, bl
jmp 0x4ec4d1
push 6
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x20], ecx
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
mov dword [esp + 0x40], 0
jmp 0x4ec4d1
cmp dword [esp + 0x40], 4
jne 0x4ec2f5
push dword [esp + 0x48]
call fcn.0051149d
add esp, 4
test eax, eax
jne 0x4ec4c6
cmp dword [esp + 0x48], 0x5f
je 0x4ec4c6
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
push 0x64
lea eax, [esp + 0x74]
push eax
push ecx
mov ecx, dword [ecx + 0x1f68]
lea edx, [edx - 1]
call fcn.0050e660
mov ecx, dword [esp + 0x78]
add esp, 0xc
lea eax, [esp + 0x70]
push eax
call fcn.0050e250
mov ecx, dword [esp + 0x2c]
test al, al
je 0x4ec2c7
cmp dword [esp + 0x1c], ecx
push dword [esp + 0x40]
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
mov dword [esp + 0x40], 0
xor bl, bl
jmp 0x4ec4d1
cmp dword [esp + 0x1c], ecx
push 7
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x48], 7
call fcn.004d7520
mov dword [esp + 0x40], 0
mov bl, 1
jmp 0x4ec4d1
cmp dword [esp + 0x40], 3
jne 0x4ec361
push dword [esp + 0x48]
call fcn.00511522
add esp, 4
test eax, eax
jne 0x4ec4c6
mov eax, dword [esp + 0x48]
cmp eax, 0x2e
je 0x4ec4c6
cmp eax, 0x65
je 0x4ec4c6
cmp eax, 0x45
je 0x4ec4c6
cmp eax, 0x2b
je 0x4ec339
cmp eax, 0x2d
jne 0x4ec34f
mov eax, dword [esp + 0x44]
cmp eax, 0x65
je 0x4ec4c6
cmp eax, 0x45
je 0x4ec4c6
push 0
lea ecx, [esp + 0x14]
call fcn.004d8d60
mov bl, 1
jmp 0x4ec4c6
cmp dword [esp + 0x40], 5
jne 0x4ec396
cmp dword [esp + 0x48], 0x27
jne 0x4ec6b1
cmp dword [esp + 0x50], 0x27
lea ecx, [esp + 0x10]
jne 0x4ec388
call fcn.004d8c70
jmp 0x4ec4c6
call fcn.004d8c70
push dword [esp + 0x40]
jmp 0x4ec218
cmp dword [esp + 0x40], 8
jne 0x4ec3e4
cmp dword [esp + 0x48], 0x5c
jne 0x4ec3c9
mov eax, dword [esp + 0x50]
cmp eax, 0x22
je 0x4ec3bb
cmp eax, 0x27
je 0x4ec3bb
cmp eax, 0x5c
jne 0x4ec6b1
lea ecx, [esp + 0x10]
call fcn.004d8c70
jmp 0x4ec4c6
cmp dword [esp + 0x48], 0x22
jne 0x4ec6b1
push 0
lea ecx, [esp + 0x14]
call fcn.004d8d90
jmp 0x4ec4c6
cmp dword [esp + 0x40], 2
jne 0x4ec3fb
cmp byte [esp + 0x3d], 0
je 0x4ec6b1
jmp 0x4ec4b9
cmp dword [esp + 0x40], 1
jne 0x4ec4c6
push dword [esp + 0x48]
call dword [esp + 0x68]
add esp, 4
test al, al
je 0x4ec45e
cmp dword [esp + 0x50], 0x7d
jne 0x4ec45e
cmp dword [esp + 0x60], edi
jne 0x4ec45e
test esi, esi
jle 0x4ec427
dec esi
mov eax, dword [esp + 0x5c]
push dword [esp + 0x2c]
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ecx, dword [esp + 0x5c]
push esi
mov ecx, dword [ecx]
push eax
mov edx, dword [ecx]
push ecx
call dword [edx + 0x28]
lea ecx, [esp + 0x10]
call fcn.004d8c70
test esi, esi
jne 0x4ec4c6
push esi
lea ecx, [esp + 0x14]
call fcn.004d8d90
jmp 0x4ec4c4
push dword [esp + 0x48]
call dword [esp + 0x68]
add esp, 4
test al, al
je 0x4ec4a0
cmp dword [esp + 0x50], 0x7b
jne 0x4ec4a0
cmp dword [esp + 0x60], edi
jne 0x4ec4a0
mov ebx, dword [esp + 0x5c]
push dword [esp + 0x2c]
mov eax, dword [ebx]
push eax
mov ecx, dword [eax]
inc esi
call dword [ecx + 0x14]
mov ecx, dword [ebx]
push esi
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x28]
lea ecx, [esp + 0x10]
call fcn.004d8c70
jmp 0x4ec4c4
test esi, esi
jne 0x4ec4c6
cmp byte [esp + 0x3d], 0
jne 0x4ec4b9
mov eax, dword [esp + 0x48]
cmp eax, 0xd
je 0x4ec4b9
cmp eax, 0xa
jne 0x4ec4c6
push 0
lea ecx, [esp + 0x14]
call fcn.004d8d60
xor bl, bl
cmp dword [esp + 0x40], 0
jne 0x4ec6b1
push dword [esp + 0x48]
call dword [esp + 0x68]
add esp, 4
test al, al
je 0x4ec536
cmp dword [esp + 0x50], 0x7b
jne 0x4ec4ee
cmp dword [esp + 0x60], edi
jne 0x4ec4ee
inc esi
mov eax, dword [esp + 0x5c]
push dword [esp + 0x2c]
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ecx, dword [esp + 0x5c]
push esi
mov ecx, dword [ecx]
push eax
mov edx, dword [ecx]
push ecx
call dword [edx + 0x28]
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x1c], ecx
push dword [esp + 0x40]
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
mov dword [esp + 0x40], 1
jmp 0x4ec6b1
mov eax, dword [esp + 0x48]
cmp eax, 0x21
jne 0x4ec574
cmp dword [esp + 0x50], 0x3d
je 0x4ec5f8
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x1c], ecx
push dword [esp + 0x40]
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
mov dword [esp + 0x40], 2
jmp 0x4ec6b1
cmp eax, 0x27
jne 0x4ec5c9
push dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
test bl, bl
je 0x4ec5a7
cmp dword [esp + 0x20], ecx
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
mov dword [esp + 0x40], 6
jmp 0x4ec6b1
cmp dword [esp + 0x20], ecx
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
mov dword [esp + 0x40], 5
jmp 0x4ec6b1
cmp eax, 0x22
jne 0x4ec5f8
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x1c], ecx
push dword [esp + 0x40]
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
mov dword [esp + 0x40], 8
jmp 0x4ec6b1
push eax
call fcn.00511522
add esp, 4
test eax, eax
jne 0x4ec68c
mov eax, dword [esp + 0x48]
cmp eax, 0x2e
jne 0x4ec626
push dword [esp + 0x50]
call fcn.00511522
add esp, 4
test eax, eax
jne 0x4ec68c
mov eax, dword [esp + 0x48]
push eax
call fcn.005114ca
add esp, 4
test eax, eax
je 0x4ec640
push 4
lea ecx, [esp + 0x14]
call fcn.004d8d60
jmp 0x4ec6b1
movsx ecx, byte [esp + 0x48]
call fcn.004d8ff0
test al, al
jne 0x4ec660
mov eax, dword [esp + 0x48]
cmp eax, 0x40
je 0x4ec660
cmp eax, 0x5c
je 0x4ec660
xor bl, bl
jmp 0x4ec6b1
mov eax, dword [esp + 0x48]
cmp eax, 0x29
je 0x4ec67d
cmp eax, 0x5d
je 0x4ec67d
push 6
lea ecx, [esp + 0x14]
xor bl, bl
call fcn.004d8d60
jmp 0x4ec6b1
push 6
lea ecx, [esp + 0x14]
mov bl, 1
call fcn.004d8d60
jmp 0x4ec6b1
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x1c], ecx
push dword [esp + 0x40]
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
mov dword [esp + 0x40], 3
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x18]
jae 0x4ec70f
mov al, byte [esp + 0x3d]
mov byte [esp + 0x3c], al
test al, al
je 0x4ec6e4
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
lea edx, [eax + 1]
mov eax, dword [esp + 0x10]
push edx
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c]
add dword [esp + 0x2c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], eax
call fcn.004d8a30
jmp 0x4ec72e
mov word [esp + 0x3c], 0x100
mov dword [esp + 0x44], 0x20
mov dword [esp + 0x48], 0x20
mov dword [esp + 0x50], 0x20
mov eax, dword [esp + 0x2c]
inc edi
cmp eax, dword [esp + 0x18]
jb 0x4ec124
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x1c], ecx
push dword [esp + 0x40]
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
mov esi, dword [esp + 0x10]
mov edi, dword [esi + 0x1f60]
mov dword [esi + 0xfa8], 0x7fffffff
test edi, edi
jle 0x4ec798
mov ecx, dword [esi]
lea eax, [esi + 0xfc0]
mov edx, dword [ecx]
push eax
push edi
push ecx
call dword [edx + 0x34]
mov eax, dword [esi + 0x1f60]
add dword [esi + 0x1f6c], eax
mov dword [esi + 0x1f60], 0
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0050ecf7
mov esp, ebp
pop ebp
ret