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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
test ecx, ecx
mov ebx, dword [esp + 0x90]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x30], ecx
lea eax, [ebx + 0x78]
lea ebp, [ebx + 0x18]
mov dword [esp + 0x24], eax
je 0x4ec710
mov dword [esp + 4], 1
mov dword [esp], ebp
call fcn.0050bfb0
test eax, eax
je 0x4ec924
mov edi, dword [ebx + 0xb0]
mov dword [esp + 4], 2
mov esi, 1
mov dword [esp], ebp
call fcn.0050bfb0
mov edx, dword [ebx + 0x104]
mov ecx, eax
shl esi, cl
mov ecx, edx
and ecx, esi
mov dword [esp + 0x14], ecx
jne 0x4ec654
lea ecx, [edi + edi*4]
or edx, esi
mov dword [ebx + 0x104], edx
mov edx, dword [esp + 0x1c]
shl ecx, 2
lea esi, [ebx + ecx]
mov dword [esp + 0x18], ecx
mov dword [esi + 0xbc], edx
mov edx, dword [esp + 0x20]
mov dword [esi + 0xb4], eax
mov dword [esi + 0xc4], 0
mov dword [esi + 0xc0], edx
add dword [ebx + 0xb0], 1
cmp eax, 1
jbe 0x4ec680
cmp eax, 3
jne 0x4ec41c
mov dword [esp + 4], 8
mov dword [esp], ebp
call fcn.0050bfb0
lea esi, [eax + 1]
cmp esi, 0x10
jle 0x4ec6e0
mov dword [esp + 0x28], 1
xor eax, eax
lea edx, [edi + edi*4]
xor ecx, ecx
lea edx, [ebx + edx*4]
mov dword [edx + 0xb8], eax
mov eax, dword [esp + 0x18]
mov edi, dword [edx + 0xbc]
mov dword [esp], ebx
mov edx, 1
lea eax, [ebx + eax + 0xc4]
mov dword [esp + 0x1c], edi
mov dword [esp + 4], eax
mov eax, esi
call fcn.004ec3f0
test eax, eax
je 0x4ec654
mov eax, dword [esp + 0x18]
lea edi, [ebx + eax + 0xb4]
mov eax, 8
mov ecx, dword [edi + 4]
mov dword [esp + 8], 4
sar eax, cl
mov edx, eax
mov dword [esp + 0x2c], eax
mov eax, 1
mov ecx, edx
shl eax, cl
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
call fcn.0050ce10
test eax, eax
mov edx, eax
mov dword [esp + 0x18], eax
je 0x4ec654
mov ecx, dword [edi + 0x10]
shl esi, 2
cmp esi, 4
mov dword [esp + 0x34], esi
mov eax, dword [ecx]
mov dword [edx], eax
jle 0x4ecec6
lea esi, [edx + esi - 4]
add ecx, 4
mov eax, edx
lea esi, [esi]
lea edi, [edi]
movzx edx, byte [eax]
add eax, 1
add ecx, 1
add dl, byte [ecx - 1]
mov byte [eax + 3], dl
cmp esi, eax
jne 0x4ec590
movzx ecx, byte [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov eax, 4
shl eax, cl
cmp edx, eax
jge 0x4ec5cb
mov esi, edx
mov edx, dword [esp + 0x18]
add esi, edx
add eax, edx
mov byte [esi], 0
add esi, 1
cmp eax, esi
jne 0x4ec5c1
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
movzx ecx, byte [esp + 0x14]
lea eax, [eax + edx - 1]
shr eax, cl
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call fcn.0050cf10
mov eax, dword [esp + 0x18]
mov dword [edi + 0x10], eax
jmp 0x4ec41c
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.0050cf10
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.0050cf10
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call fcn.0050cf10
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.0050cf10
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.0050c630
mov dword [ebx], 3
xor esi, esi
mov dword [esp], esi
call fcn.0050cf10
mov eax, dword [esp + 0x24]
call fcn.004eab10
xor eax, eax
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 3
mov dword [esp], ebp
mov edi, 1
call fcn.0050bfb0
lea ecx, [eax + 2]
mov eax, dword [esi + 0xc0]
shl edi, cl
mov dword [esi + 0xb8], ecx
lea edx, [edi + eax - 1]
mov eax, dword [esi + 0xbc]
mov dword [esp], ebx
shr edx, cl
lea eax, [edi + eax - 1]
mov edi, dword [esp + 0x18]
shr eax, cl
lea ecx, [ebx + edi + 0xc4]
mov dword [esp + 4], ecx
xor ecx, ecx
call fcn.004ec3f0
test eax, eax
jne 0x4ec41c
jmp 0x4ec654
cmp esi, 4
jg 0x4ec971
cmp esi, 3
setl al
movzx edx, al
lea edx, [edx*4 + 4]
mov dword [esp + 0x28], edx
movzx edx, al
add edx, 2
mov dword [esp + 0x14], edx
mov eax, edx
jmp 0x4ec4df
mov dword [esp + 4], 1
mov dword [esp], ebp
call fcn.0050bfb0
test eax, eax
jne 0x4ec990
mov dword [esp + 0x6c], 0
mov dword [esp + 0x48], 0
mov esi, 0xb8a
mov dword [esp + 0x38], 0
mov dword [esp + 0x54], 1
mov dword [esp + 0x4c], 1
mov edi, dword [ebx + 0x30]
test edi, edi
jne 0x4ec600
mov edi, dword [esp + 0x48]
mov eax, 1
mov ecx, edi
shl eax, cl
test edi, edi
setg byte [esp + 0x34]
xor edx, edx
xor ecx, ecx
test edx, edx
mov ebp, eax
mov dword [esp + 0x50], eax
mov eax, 0x118
jne 0x4ec792
cmp byte [esp + 0x34], 0
lea edi, [eax + ebp]
cmovne eax, edi
cmp ecx, eax
cmovl ecx, eax
add edx, 1
cmp edx, 5
je 0x4ec7b8
test edx, edx
movzx eax, word [edx + edx + 0x74b0f4]
je 0x4ec787
cmp ecx, eax
cmovl ecx, eax
add edx, 1
cmp edx, 5
jne 0x4ec79f
mov dword [esp], ecx
sar ecx, 0x1f
mov dword [esp + 8], 4
mov dword [esp + 4], ecx
call fcn.0050ce90
mov edi, dword [esp + 0x4c]
mov dword [esp + 8], 4
mov ebp, eax
mov dword [esp + 0x3c], eax
imul esi, edi
mov dword [esp], esi
sar esi, 0x1f
mov dword [esp + 4], esi
call fcn.0050ce10
mov dword [esp], edi
mov esi, eax
mov dword [esp + 0x44], eax
call fcn.0050c600
test eax, eax
mov dword [esp + 0x40], eax
sete dl
test ebp, ebp
sete al
or dl, al
jne 0x4ec9e0
test esi, esi
je 0x4ec9e0
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 0x54]
mov dword [esp + 0x58], 0
test esi, esi
jle 0x4ecad1
mov dword [esp + 0x90], ebx
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4ecead
mov edi, dword [esp + 0x58]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x4ecc7b
imul eax, eax, 0x224
mov edi, dword [esp + 0x40]
mov dword [esp + 0x2c], 0
xor esi, esi
mov ebx, 0x118
mov dword [esp + 0x14], 1
lea ebp, [edi + eax]
xor edi, edi
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x5c]
mov eax, dword [esp + 0x18]
test esi, esi
mov dword [eax + esi*4], ebp
jne 0x4ec8a9
mov eax, dword [esp + 0x50]
add eax, ebx
cmp byte [esp + 0x34], 0
cmovne ebx, eax
mov edx, dword [esp + 0x90]
mov dword [esp], ebp
mov ecx, edi
mov eax, ebx
call fcn.004eabf0
test eax, eax
je 0x4eceba
mov ecx, dword [esp + 0x14]
movzx edx, byte [ebp]
test ecx, ecx
je 0x4ec8e4
cmp byte [esi + 0x74b0ec], 1
jne 0x4ec8e4
xor ecx, ecx
test dl, dl
sete cl
mov dword [esp + 0x14], ecx
add dword [esp + 0x28], edx
cmp esi, 4
lea ebp, [ebp + eax*4]
je 0x4eca40
cmp ebx, 1
mov edx, dword [edi]
jle 0x4ec910
lea eax, [edi + 4]
lea ebx, [edi + ebx*4]
mov ecx, dword [eax]
cmp edx, ecx
cmovl edx, ecx
add eax, 4
cmp ebx, eax
jne 0x4ec902
add esi, 1
add dword [esp + 0x2c], edx
movzx ebx, word [esi + esi + 0x74b0f4]
jmp 0x4ec890
mov dword [esp + 4], 1
mov dword [esp], ebp
call fcn.0050bfb0
test eax, eax
je 0x4ec9f0
mov dword [esp + 4], 4
mov dword [esp], ebp
call fcn.0050bfb0
lea edx, [eax - 1]
cmp edx, 0xa
ja 0x4ec654
mov dword [esp + 0x48], eax
mov dword [esp + 0x6c], 0
movzx esi, word [eax + eax + 0x74b040]
jmp 0x4eca05
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], 2
mov dword [esp + 0x14], 1
jmp 0x4ec4df
mov dword [esp + 4], 4
mov dword [esp], ebp
call fcn.0050bfb0
lea edx, [eax - 1]
cmp edx, 0xa
ja 0x4ec654
mov dword [esp + 0x48], eax
mov dword [esp + 0x6c], 0
movzx esi, word [eax + eax + 0x74b040]
mov dword [esp + 0x38], 0
mov dword [esp + 0x54], 1
mov dword [esp + 0x4c], 1
jmp 0x4ec755
mov dword [ebx], 1
jmp 0x4ec618
mov dword [esp + 0x6c], 0
mov dword [esp + 0x48], 0
mov esi, 0xb8a
mov dword [esp + 4], 1
mov dword [esp], ebp
call fcn.0050bfb0
test eax, eax
jne 0x4ecd52
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], 0
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], eax
jmp 0x4ec755
mov eax, dword [esp + 0x14]
mov dword [esp + 0x5c], ebp
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
test eax, eax
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x1c], 0
je 0x4ecbc0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
movzx eax, word [eax + 2]
movzx edx, word [edx + 2]
shl eax, 0x18
or eax, edx
mov edx, dword [ebp + 4]
movzx edx, word [edx + 2]
shl edx, 0x10
or eax, edx
test edi, edi
mov dword [ebp + 0x18], eax
jne 0x4ecbc0
mov edx, dword [ebp]
movzx edx, word [edx + 2]
cmp dx, 0xff
ja 0x4ecbc0
shl edx, 8
mov dword [ebp + 0x1c], 1
or eax, edx
mov dword [ebp + 0x18], eax
lea esi, [esi]
mov dword [ebp + 0x20], 0
add dword [esp + 0x58], 1
mov eax, dword [esp + 0x58]
cmp eax, dword [esp + 0x54]
jne 0x4ec83e
mov ebx, dword [esp + 0x90]
mov eax, dword [esp + 0x6c]
mov dword [ebx + 0xa0], eax
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0xa4], eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 0xa8], eax
mov eax, dword [esp + 0x44]
mov dword [ebx + 0xac], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.0050cf10
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.0050cf10
mov edi, dword [esp + 0x48]
test edi, edi
jg 0x4ecb90
mov dword [ebx + 0x78], 0
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + 0x98]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x30]
mov dword [ebx + 0x68], eax
mov eax, 1
shl eax, cl
mov dword [ebx + 0x64], edi
sub eax, 1
lea edx, [eax + edi]
shr edx, cl
test ecx, ecx
mov dword [ebx + 0x9c], edx
mov edx, 0xffffffff
cmove eax, edx
test esi, esi
mov dword [ebx + 0x94], eax
je 0x4eccd2
mov ecx, dword [esp + 0x94]
mov dword [ebx + 4], 1
test ecx, ecx
jne 0x4ecf93
mov dword [ebx + 0x70], 0
mov eax, dword [esp + 0x30]
jmp 0x4ec66f
mov eax, dword [esp + 0x50]
mov dword [ebx + 0x78], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
lea eax, [ebx + 0x7c]
mov dword [esp], eax
call fcn.0050c020
test eax, eax
jne 0x4ecb20
mov dword [ebx], 1
xor esi, esi
jmp 0x4ec65c
cmp dword [esp + 0x2c], 5
jg 0x4ecab0
mov edi, dword [ebp]
mov dword [ebp + 0x20], 1
xor ebx, ebx
mov dword [esp + 0x18], edi
jmp 0x4ecbfa
add esi, 0x100
mov dword [ebp + ebx*8 + 0x28], edx
mov dword [ebp + ebx*8 + 0x24], esi
add ebx, 1
cmp ebx, 0x40
je 0x4ecab7
mov edi, dword [esp + 0x18]
movzx edx, word [edi + ebx*4 + 2]
movzx esi, byte [edi + ebx*4]
cmp dx, 0xff
mov dword [esp + 0x14], esi
ja 0x4ecbe0
movzx ecx, byte [esp + 0x14]
mov eax, ebx
shl edx, 8
shr eax, cl
mov ecx, dword [ebp + 4]
lea esi, [ecx + eax*4]
movzx ecx, byte [esi]
movzx esi, word [esi + 2]
shr eax, cl
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 8]
shl esi, 0x10
or edx, esi
lea ecx, [ecx + eax*4]
movzx esi, word [ecx + 2]
movzx edi, byte [ecx]
or edx, esi
mov ecx, edi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x2c], edx
mov edx, dword [ebp + 0xc]
shr eax, cl
add esi, dword [esp + 0x14]
lea eax, [edx + eax*4]
movzx edx, word [eax + 2]
lea ecx, [esi + edi]
movzx esi, byte [eax]
shl edx, 0x18
or edx, dword [esp + 0x2c]
add ecx, esi
mov dword [ebp + ebx*8 + 0x24], ecx
mov dword [ebp + ebx*8 + 0x28], edx
jmp 0x4ecbee
xor ebx, ebx
mov eax, 0x118
mov ebp, dword [esp + 0x50]
test ebx, ebx
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x90]
jne 0x4ecca0
cmp byte [esp + 0x34], 0
lea edx, [eax + ebp]
cmovne eax, edx
mov dword [esp], 0
mov ecx, esi
mov edx, edi
call fcn.004eabf0
test eax, eax
je 0x4ecef8
add ebx, 1
cmp ebx, 5
je 0x4ecab7
test ebx, ebx
movzx eax, word [ebx + ebx + 0x74b0f4]
je 0x4ecc95
jmp 0x4ecca0
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov dword [esp + 8], 4
mov eax, ebp
imul edi
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0050ce10
test eax, eax
mov esi, eax
je 0x4ecbb2
mov edx, eax
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], edi
mov ecx, ebp
mov eax, ebx
call fcn.004eb730
test eax, eax
je 0x4ec65c
mov edx, dword [ebx + 0x30]
test edx, edx
jne 0x4ec65c
mov eax, dword [esp + 0x94]
test eax, eax
jne 0x4ecfa5
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x70], 0
call fcn.004eab10
mov eax, 1
jmp 0x4ec66f
mov dword [esp], ebp
mov dword [esp + 4], 3
call fcn.0050bfb0
lea edx, [eax + 2]
mov edi, dword [esp + 0x1c]
mov eax, 1
mov dword [esp], ebx
mov ecx, edx
mov dword [esp + 0x14], edx
shl eax, cl
lea edi, [eax + edi - 1]
shr edi, cl
mov ecx, dword [esp + 0x20]
lea ebp, [eax + ecx - 1]
mov ecx, edx
lea eax, [esp + 0x6c]
shr ebp, cl
mov dword [esp + 4], eax
xor ecx, ecx
mov edx, ebp
mov eax, edi
call fcn.004ec3f0
test eax, eax
je 0x4eced3
imul edi, ebp
mov edx, dword [esp + 0x14]
test edi, edi
mov dword [ebx + 0x98], edx
jle 0x4ecf86
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], esi
lea ebp, [eax + edi*4]
lea esi, [esi]
movzx edx, word [eax + 1]
lea esi, [edx + 1]
cmp edx, ecx
mov dword [eax], edx
cmovge ecx, esi
add eax, 4
cmp ebp, eax
jne 0x4ecdd0
cmp ecx, 0x3e8
mov esi, dword [esp + 0x14]
mov dword [esp + 0x54], ecx
jg 0x4ecf14
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x54]
imul eax, dword [esp + 0x1c]
cmp edx, eax
jle 0x4eceff
mov dword [esp], edx
sar edx, 0x1f
mov dword [esp + 8], 4
mov dword [esp + 4], edx
call fcn.0050ce10
test eax, eax
mov dword [esp + 0x38], eax
je 0x4ecf5b
mov eax, dword [esp + 0x54]
mov dword [esp + 4], 0xff
shl eax, 2
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.msvcrt.dll_memset
test edi, edi
mov dword [esp + 0x4c], 0
jle 0x4ec755
mov dword [esp + 0x90], ebx
mov ebp, dword [esp + 0x6c]
xor edx, edx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x14], esi
xor eax, eax
mov esi, edx
mov edx, dword [ebp + eax*4]
lea ecx, [ebx + edx*4]
mov edx, dword [ecx]
cmp edx, 0xffffffff
jne 0x4ece8e
mov dword [ecx], esi
mov edx, esi
add esi, 1
mov dword [ebp + eax*4], edx
add eax, 1
cmp edi, eax
jg 0x4ece79
mov dword [esp + 0x4c], esi
mov ebx, dword [esp + 0x90]
mov esi, dword [esp + 0x14]
jmp 0x4ec755
imul eax, dword [esp + 0x58], 0x224
jmp 0x4ec860
mov ebx, dword [esp + 0x90]
jmp 0x4ec618
mov dword [esp + 0x34], 4
jmp 0x4ec5a3
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
jmp 0x4ec618
mov ebx, edi
jmp 0x4ec618
mov eax, dword [esp + 0x54]
mov dword [esp + 0x38], 0
mov dword [esp + 0x4c], eax
jmp 0x4ec755
mov eax, dword [esp + 0x54]
mov dword [esp + 8], 4
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
call fcn.0050ce10
test eax, eax
mov dword [esp + 0x38], eax
je 0x4ecf5b
mov eax, dword [esp + 0x54]
mov dword [esp + 4], 0xff
shl eax, 2
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.msvcrt.dll_memset
jmp 0x4ece60
mov dword [ebx], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
jmp 0x4ec618
mov eax, dword [esp + 0x30]
mov dword [esp + 0x54], eax
jmp 0x4ecdf9
mov eax, dword [esp + 0x94]
mov dword [eax], 0
jmp 0x4ecb7b
mov eax, dword [esp + 0x94]
mov dword [eax], esi
jmp 0x4ecd38