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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [edx]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [edx + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [eax]
lea ecx, [ecx + ecx*2]
shl ecx, 4
add ebx, ecx
mov dword [esp + 0x34], eax
push esi
mov eax, dword [eax]
mov dword [esp + 0x50], ecx
mov ecx, dword [ebx]
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ecx
push edi
test eax, eax
je 0x4ec62f
push 0
push 0x1a0
mov ecx, eax
call fcn.00478070
mov edi, eax
add esp, 8
mov dword [esp + 0xc], edi
jmp 0x4ec691
cmp dword [0x70b848], 0
je 0x4ec67d
mov eax, dword [0x716a80]
test eax, eax
je 0x4ec64b
push eax
call dword [0x70b898]
add esp, 4
lea edx, [esp + 0x30]
mov ecx, 0x1a0
call fcn.00477a00
mov eax, dword [0x716a80]
test eax, eax
je 0x4ec673
push eax
call dword [0x70b8a0]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], edi
jmp 0x4ec68e
mov edi, dword [esp + 0x30]
mov dword [esp + 0xc], edi
jmp 0x4ec691
push 0x1a0
call dword [0x70b868]
mov edi, eax
mov dword [esp + 0x10], eax
add esp, 4
test edi, edi
je 0x4ec6a5
push 0x1a0
push 0
push edi
call fcn.00639370
add esp, 0xc
mov dword [ebx + 0x1c], edi
test edi, edi
je 0x4ecd5f
or word [ebx + 0xa], 0x10
lea esi, [edi + 0x18]
push 0x180
push 0
push esi
call fcn.00639370
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov edx, dword [esp + 0x50]
mov ecx, edi
mov dword [edi], eax
mov byte [edi + 9], 0
push 0x2b
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 8
mov dword [edi + 0x14], esi
call fcn.004edd80
mov esi, dword [edi + 0xc]
add esp, 4
sub esi, 1
js 0x4ec71c
mov ebx, dword [esp + 0x38]
push esi
mov edx, edi
mov ecx, ebx
call fcn.004ed130
add esp, 4
sub esi, 1
jns 0x4ec706
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x51], 0
jne 0x4ecd5f
mov esi, dword [esp + 0xc]
or edx, 0xffffffff
or ecx, 0xffffffff
mov dword [esp + 0x28], edx
or edi, 0xffffffff
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], edi
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 0x14]
sub eax, 1
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], esi
js 0x4ec99f
mov eax, edx
or eax, ecx
je 0x4ec997
movzx eax, word [esi + 0xc]
test eax, 0x1ff
jne 0x4ec8e6
mov ecx, dword [esp + 0x24]
xorps xmm0, xmm0
push 0
push 0x198
movlpd qword [esp + 0x18], xmm0
call fcn.00478070
mov edi, eax
add esp, 8
test edi, edi
je 0x4ec8c9
or word [esi + 0xa], 0x20
mov eax, 0x400
push 0x180
mov dword [esi + 0x1c], edi
xorps xmm0, xmm0
mov word [esi + 0xc], ax
lea esi, [edi + 0x18]
push 0
push esi
movlpd qword [esp + 0x24], xmm0
call fcn.00639370
mov ebx, dword [esp + 0x40]
add esp, 0xc
mov edx, dword [esp + 0x30]
mov ecx, edi
mov eax, dword [ebx]
mov dword [edi], eax
mov byte [edi + 9], 0
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 8
mov dword [edi + 0x14], esi
mov edx, dword [edx]
push 0x2c
call fcn.004edd80
mov esi, dword [edi + 0xc]
add esp, 4
sub esi, 1
js 0x4ec824
nop dword [eax]
mov ecx, dword [esp + 0x38]
mov edx, edi
push esi
call fcn.004ed130
add esp, 4
sub esi, 1
jns 0x4ec810
mov eax, dword [esp + 0x24]
mov dword [edi + 4], ebx
cmp byte [eax + 0x51], 0
jne 0x4ec894
mov esi, dword [edi + 0x14]
mov edi, dword [edi + 0xc]
test edi, edi
jle 0x4ec894
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
mov eax, dword [esi]
movzx eax, byte [eax]
cmp eax, 0x31
je 0x4ec86c
cmp eax, 0x35
jb 0x4ec85b
cmp eax, 0x39
jbe 0x4ec86c
cmp eax, 0x32
je 0x4ec86c
cmp eax, 0x2d
je 0x4ec86c
cmp word [esi + 0xc], 0x40
jne 0x4ec88a
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x14]
lea ecx, [ecx + 0x1e8]
call fcn.004ee310
mov ecx, dword [esp + 0x18]
or ecx, eax
or ebx, edx
mov dword [esp + 0x18], ecx
add esi, 0x30
sub edi, 1
jne 0x4ec847
jmp 0x4ec89c
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
and edx, ecx
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
and ecx, ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], edi
jmp 0x4ec97d
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], edi
jmp 0x4ec97d
movzx eax, word [esi + 0xa]
test al, 8
jne 0x4ec979
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x14]
add ecx, 0x1e8
call fcn.004ee310
mov edi, eax
mov ebx, edx
movzx eax, word [esi + 0xa]
test al, 2
je 0x4ec93a
mov esi, dword [esi + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
lea esi, [esi + esi*2]
mov edx, dword [eax + 0x14]
add esi, esi
lea ecx, [ecx + 0x1e8]
mov edx, dword [edx + esi*8 + 0x14]
call fcn.004ee310
mov esi, dword [esp + 0x30]
or edi, eax
or ebx, edx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
and edx, edi
movzx eax, word [esi + 0xc]
and ecx, ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
test al, 2
jne 0x4ec971
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edi
jmp 0x4ec97d
and dword [esp + 0x10], edi
and dword [esp + 0x18], ebx
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
add esi, 0x30
dec eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x40], eax
test eax, eax
jns 0x4ec762
jmp 0x4ec99b
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0xc]
mov eax, 0x200
mov dword [esi + 0x198], edx
or edx, ecx
mov dword [esi + 0x19c], ecx
mov word [ebx + 0xc], ax
je 0x4eca80
mov eax, dword [esp + 0x34]
mov byte [eax + 9], 1
cmp dword [esi + 0xc], 2
jne 0x4eca80
xor ecx, ecx
xor edx, edx
nop word [eax + eax]
mov eax, dword [esi + 0x14]
mov edi, 0x400
cmp word [eax + 0xc], di
je 0x4ec9f7
xor ebx, ebx
test ecx, ecx
cmove ebx, eax
jmp 0x4eca08
mov ebx, dword [eax + 0x1c]
cmp ecx, dword [ebx + 0xc]
jge 0x4eca06
mov ebx, dword [ebx + 0x14]
add ebx, edx
jmp 0x4eca08
xor ebx, ebx
inc ecx
add edx, 0x30
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x40], edx
test ebx, ebx
je 0x4eca7c
xor esi, esi
xor edi, edi
nop dword [eax]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x14]
mov eax, 0x400
add ecx, 0x30
cmp word [ecx + 0xc], ax
je 0x4eca3e
xor eax, eax
test esi, esi
cmove eax, ecx
jmp 0x4eca4f
mov eax, dword [ecx + 0x1c]
cmp esi, dword [eax + 0xc]
jge 0x4eca4d
mov eax, dword [eax + 0x14]
add eax, edi
jmp 0x4eca4f
xor eax, eax
inc esi
add edi, 0x30
test eax, eax
je 0x4eca6b
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
push eax
push ebx
call fcn.004ec4c0
add esp, 8
jmp 0x4eca20
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0xc]
jmp 0x4ec9e0
mov edi, dword [esp + 0x10]
mov eax, edi
or eax, dword [esp + 0x18]
je 0x4ecd5f
xor eax, eax
mov edx, 0xffbf
or ecx, 0xffffffff
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], ecx
nop
test eax, eax
jne 0x4ecbf7
mov ebx, dword [esi + 0xc]
sub ebx, 1
mov edi, dword [esi + 0x14]
js 0x4ecd5f
and word [edi + 0xa], dx
mov edx, dword [edi + 0x14]
cmp edx, ecx
je 0x4ecb05
mov ecx, dword [esp + 0x20]
xor eax, eax
mov esi, dword [ecx + 0x1ec]
test esi, esi
jle 0x4ecae4
add ecx, 0x1f0
cmp dword [ecx], edx
je 0x4ecb18
inc eax
add ecx, 4
cmp eax, esi
jl 0x4ecad8
xorps xmm0, xmm0
movlpd qword [esp + 0x40], xmm0
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
and ecx, dword [esp + 0x10]
and edx, dword [esp + 0x18]
or ecx, edx
jne 0x4ecb2f
mov ecx, dword [esp + 0x30]
add edi, 0x30
sub ebx, 1
js 0x4ecd5f
mov edx, 0xffbf
jmp 0x4ecab7
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
jmp 0x4ecaf5
mov eax, dword [edi + 0x14]
lea esi, [edi + 0xa]
mov ecx, dword [edi + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [edi]
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 0xc]
mov eax, 1
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4ecbd0
mov edi, dword [esp + 0x30]
cmp dword [esi + 0xa], edi
je 0x4ecb69
mov ecx, 0xffbf
and word [esi], cx
jmp 0x4ecbc0
cmp dword [esi + 0x12], ecx
jne 0x4ecbba
cmp ecx, 0xfffffffe
jne 0x4ecb8c
mov ecx, dword [esp + 0x3c]
push 0xffffffffffffffff
push edx
mov edx, dword [esi - 0xa]
mov edx, dword [edx + 0xc]
call fcn.004b6da0
add esp, 8
test eax, eax
jne 0x4ecbba
mov ecx, dword [esi - 0xa]
mov ecx, dword [ecx + 0x10]
call fcn.004af270
mov ecx, dword [esi - 0xa]
movsx edi, al
mov ecx, dword [ecx + 0xc]
call fcn.004af270
movsx eax, al
test edi, edi
je 0x4ecbb0
cmp edi, eax
jne 0x4ecbba
or word [esi], 0x40
mov eax, dword [esp + 0x2c]
jmp 0x4ecbc0
xor eax, eax
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x40]
add esi, 0x30
sub ebx, 1
mov edx, dword [esp + 0x28]
jns 0x4ecb52
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x30]
inc edx
mov esi, dword [esp + 0xc]
cmp edx, 2
mov dword [esp + 0x4c], edx
mov edx, 0xffbf
jl 0x4ecaa0
test eax, eax
je 0x4ecd5f
mov eax, dword [esp + 0xc]
xor ebx, ebx
mov esi, dword [esi + 0x14]
xor edx, edx
mov edi, dword [eax + 0xc]
sub edi, 1
js 0x4ecc6b
nop word [eax + eax]
test byte [esi + 0xa], 0x40
je 0x4ecc4b
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
test edx, edx
je 0x4ecc31
mov ecx, dword [esp + 0x24]
push 0
push 0
call fcn.004b0600
add esp, 8
jmp 0x4ecc33
xor eax, eax
push eax
mov eax, dword [esp + 0x24]
mov edx, ebx
mov ecx, dword [eax]
call fcn.004b1210
mov ebx, eax
add esp, 4
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
add esi, 0x30
sub edi, 1
jns 0x4ecc10
test edx, edx
je 0x4ecc6b
mov ecx, dword [esp + 0x24]
push 0
push 0
call fcn.004b0600
add esp, 8
mov edi, eax
jmp 0x4ecc6d
xor edi, edi
mov eax, dword [esp + 0x3c]
push 0
push 0x34
mov ecx, dword [eax]
call fcn.00478070
mov esi, eax
add esp, 8
test esi, esi
je 0x4ecd3f
push 0x34
push 0
push esi
call fcn.00639370
or eax, 0xffffffff
mov byte [esi], 0x31
add esp, 0xc
mov word [esi + 0x22], ax
test edi, edi
je 0x4eccb2
mov dword [esi + 0xc], edi
mov eax, dword [edi + 4]
and eax, 0x200104
or dword [esi + 4], eax
mov ecx, esi
call fcn.004afd10
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x78]
cmp dword [esi + 0x18], eax
jle 0x4eccd6
push eax
push 0x706b1c
push ecx
call fcn.0047b1c0
add esp, 0xc
mov ecx, dword [esp + 0x50]
mov edx, esi
push 3
mov eax, dword [ecx + 4]
and eax, 1
or dword [esi + 4], eax
movzx eax, word [ecx + 0x24]
mov dword [esi + 0x14], ebx
mov ebx, dword [esp + 0x38]
mov ecx, ebx
mov word [esi + 0x24], ax
call fcn.004ebd70
mov ecx, dword [esp + 0x3c]
add esp, 4
mov esi, eax
mov edx, ebx
push esi
call fcn.004ed130
mov eax, dword [ebx + 0x14]
lea edx, [esi + esi*2]
mov ecx, dword [ebp + 8]
add edx, edx
mov esi, dword [esp + 0x58]
add esp, 4
mov dword [eax + edx*8 + 0x10], ecx
mov ecx, dword [ebx + 0x14]
movzx eax, word [ecx + esi + 8]
mov word [ecx + edx*8 + 8], ax
mov eax, dword [ebx + 0x14]
inc byte [eax + esi + 0xe]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4ecd50
mov eax, dword [esp + 0x3c]
mov edx, edi
mov ecx, dword [eax]
call fcn.004b03b0
test ebx, ebx
je 0x4ecd5f
mov ecx, dword [esp + 0x24]
mov edx, ebx
call fcn.004b15f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret