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

Disassembly:
sub esp, 0x100
mov eax, dword [esp + 0x104]
movzx edx, byte [eax + 0xb]
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov ch, byte [eax + 9]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x118]
push edi
xor ebx, ebx
mov cl, byte [eax + 0xa]
mov eax, dword [eax + 0x14]
push ebx
push esi
shl ecx, 8
or ecx, edx
mov edi, ecx
push edi
push eax
lea ecx, [esp + 0x58]
call fcn.004deb60
mov ecx, dword [esp + 0x58]
add ecx, edi
mov dword [esp + 0x44], ecx
push 2
lea ecx, [esp + 0x50]
mov dword [esp + 0x1c], ebx
call fcn.004ff530
lea ecx, [esp + 0x4c]
mov dword [esp + 0x20], eax
call fcn.004ff400
lea ecx, [esp + 0x4c]
mov dword [esp + 0x2c], eax
call fcn.004ff400
lea ecx, [esp + 0x4c]
mov edi, eax
call fcn.004ff400
mov ebp, dword [esp + 0x118]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x24], eax
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x10], edx
je 0x4ec9b7
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov eax, dword [ebp + 0x14]
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.00497d20
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.004e9ee0
mov edx, dword [ebp + 4]
mov ecx, dword [edx + 0x2c]
push ebx
push ebx
push ebx
lea edx, [esp + 0x98]
push edx
lea edx, [esp + 0xcc]
push edx
lea edx, [esp + 0xac]
push edx
lea edx, [esp + 0xbc]
push edx
lea edx, [esp + 0xcc]
push edx
lea edx, [esp + 0xe8]
push edx
mov edx, dword [esp + 0x4c]
push esi
push ebx
push edx
push ebx
push eax
push ebx
push ecx
mov dword [esp + 0x5c], eax
call fcn.004ead90
add esp, 0x48
test eax, eax
je 0x4ec95c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x84]
mov eax, edi
and eax, 8
push eax
and edi, 2
push edi
push ecx
mov ecx, dword [esp + 0x34]
push edx
call fcn.004e9130
mov ebx, eax
mov eax, dword [esp + 0x14]
push eax
call fcn.00439d00
mov ecx, dword [esp + 0x88]
push ecx
call fcn.00439d00
mov edx, dword [esp + 0xbc]
push edx
call fcn.00439d00
mov eax, dword [esp + 0x9c]
push eax
call fcn.00439d00
mov ecx, dword [esp + 0xac]
push ecx
call fcn.00439d00
mov edx, dword [esp + 0xbc]
push edx
call fcn.00439d00
mov eax, dword [esp + 0xd8]
push eax
call fcn.00439d00
add esp, 0x1c
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00439d00
add esp, 4
test ebx, ebx
je 0x4ed0d0
cmp dword [ebx + 0x90], ebp
jne 0x4ed0d0
mov edx, dword [esp + 0x24]
mov eax, dword [ebx + 0x94]
mov dword [ebx + 0x80], edx
mov ecx, dword [eax + 0x2c]
push ecx
push esi
lea ecx, [esp + 0x104]
call fcn.00471d70
mov ecx, dword [ebx + 0x94]
push 0x549390
call fcn.0048c060
test eax, eax
je 0x4ed0c4
mov eax, dword [eax]
mov edx, eax
mov ecx, edx
and ecx, 7
cmp ecx, 7
jne 0x4eca2a
and edx, 0xfffffff8
mov edx, dword [edx + 4]
mov ecx, edx
and ecx, 7
cmp ecx, 2
jne 0x4eca34
and edx, 0x1f
mov ecx, edx
cmp ecx, 6
jne 0x4ed0c4
mov edx, eax
and edx, 7
cmp dl, 7
jne 0x4eca4d
and eax, 0xfffffff8
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x10]
and eax, 0xfffffff8
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x78], eax
mov dword [esp + 0x58], ecx
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 2
mov dword [esp + 0x38], 0
call fcn.00463070
mov eax, dword [esp + 0x14]
mov edx, eax
and edx, 7
cmp dl, 7
mov edi, eax
jne 0x4eca93
and eax, 0xfffffff8
mov edi, dword [eax + 4]
and edi, 0xfffffff8
mov dword [esp + 0x30], edi
je 0x4ed07a
mov eax, dword [esp + 0x58]
cmp eax, dword [esp + 0x44]
jge 0x4ed07a
lea ecx, [esp + 0x4c]
call fcn.004ff340
lea ecx, [esp + 0x4c]
movzx ebp, al
call fcn.004ff400
mov ecx, dword [ebx + 0xbc]
mov edi, eax
xor eax, eax
cmp ecx, eax
je 0x4ecadc
cmp ebp, 0xb
je 0x4ecadc
add dword [esp + 0x58], edi
jmp 0x4ecaa0
add ebp, 0xfffffffc
cmp ebp, 7
ja case.0x4ecae4.10
jmp dword [ebp*4 + 0x4ed0e8]
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 2
call fcn.00463050
push 0
push 0x542008
lea ecx, [esp + 0x18]
call fcn.00411870
push eax
mov ecx, esi
call fcn.0049f810
mov ecx, dword [esp + 0x10]
push 0x46
push ecx
mov ecx, dword [ebx + 0x94]
push 0x549390
call fcn.00490dd0
mov ecx, eax
call fcn.00411870
mov byte [eax + 0x25], 0x14
mov edx, dword [ebx + 0x94]
push eax
push edx
mov dword [esp + 0x24], eax
call fcn.004eaa50
add esp, 8
mov ebp, 1
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x30], 2
call fcn.00463050
lea ecx, [esp + 0x2c]
call fcn.00411870
push 0
mov edi, eax
push 0x542008
push edi
mov ecx, esi
call fcn.0049f810
push 0x53f360
lea eax, [esp + 0xd8]
push eax
mov ecx, esi
call fcn.0049f2a0
mov ecx, dword [eax]
push 0x549908
push ecx
mov ecx, edi
call fcn.00490090
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push 0
push edx
call fcn.00490fb0
mov dword [ebx + 0x9c], ebp
jmp 0x4ecaa0
mov dword [esp + 0x3c], eax
push 1
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x40], 2
call fcn.004dfe60
lea ecx, [esp + 0xe0]
push ecx
lea ecx, [esp + 0x3c]
call fcn.004872f0
mov edx, dword [eax]
mov ecx, dword [esp + 0x1c]
push edx
call fcn.0048bb40
push esi
lea ecx, [esp + 0x28]
mov ebp, eax
mov dword [esp + 0x28], 2
call fcn.00463050
lea ecx, [esp + 0x24]
call fcn.00411870
push 0
mov edi, eax
push 0x542008
push edi
mov ecx, esi
call fcn.0049f810
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0x3c]
call fcn.004872f0
push 0x53f2b0
lea ecx, [esp + 0xd4]
push ecx
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.0049f2a0
mov edx, dword [esp + 0x10]
mov ecx, dword [edx]
mov edx, dword [eax]
push 0
push ecx
push edx
mov ecx, edi
call fcn.0048f400
test ebp, ebp
je 0x4eccf5
mov ecx, ebp
call fcn.004852d0
test al, al
mov dword [esp + 0x10], 0x549900
je 0x4ecc88
mov dword [esp + 0x10], 0x5498f8
push 0x53f360
lea eax, [esp + 0xd0]
push eax
mov ecx, esi
call fcn.0049f2a0
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
push ecx
push edx
mov ecx, edi
call fcn.00490090
mov eax, dword [ebp]
push 0x5498ec
lea ecx, [esp + 0xe0]
push ecx
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.0049f2a0
mov edx, dword [esp + 0x10]
mov eax, dword [eax]
push 0
push edx
push eax
mov ecx, edi
call fcn.0048f400
mov ecx, ebp
call fcn.00485310
test al, al
je 0x4eccea
mov dword [esp + 0x18], 1
push 0
mov ecx, ebp
call fcn.0048e090
jmp 0x4ecd06
push 0x549900
push 0x53f360
mov ecx, edi
call fcn.004900f0
mov ecx, dword [esp + 0x24]
push 0
push ecx
mov ecx, dword [esp + 0x38]
call fcn.00490fb0
lea edx, [esp + 0xe4]
push edx
lea ecx, [esp + 0x3c]
call fcn.004872f0
mov ecx, dword [esp + 0x38]
mov edx, dword [eax]
mov edi, dword [esp + 0x1c]
push 0
push ecx
push edx
mov ecx, edi
call fcn.0048f400
lea ecx, [esp + 0x38]
call fcn.004023b0
cmp eax, 6
jne 0x4ecd7a
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0x3c]
call fcn.004872f0
mov ecx, dword [eax]
push ecx
mov ecx, edi
call fcn.0048bb40
test eax, eax
je 0x4ecd7a
mov ecx, eax
call fcn.00411870
push eax
push edi
call fcn.004eaa50
add esp, 8
lea ecx, [esp + 0x38]
mov dword [ebx + 0x9c], 1
call fcn.00430970
jmp 0x4ecaa0
mov dword [ebx + 0xbc], eax
mov eax, 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], eax
jmp 0x4ecaa0
mov eax, dword [esp + 0x58]
add edi, eax
xor edx, edx
cmp eax, edi
sete dl
mov eax, 1
mov dword [esp + 0x18], eax
mov dword [ebx + 0x9c], eax
cmp dword [esp + 0x58], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x34], edx
jge 0x4ecaa0
jmp 0x4ecde0
push 2
lea ecx, [esp + 0x50]
call fcn.004ff530
mov edi, eax
push edi
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.0049f2a0
push edi
call fcn.00439d00
mov ecx, dword [esp + 0x2c]
add esp, 4
push ecx
mov ecx, dword [esp + 0x20]
call fcn.0048bb40
mov ebp, eax
test ebp, ebp
je 0x4ecef9
mov ecx, ebp
call fcn.004852d0
cmp al, 2
jne 0x4ecee5
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 2
call fcn.00463050
mov edi, dword [esp + 0x10]
mov edx, edi
and edx, 7
cmp dl, 7
jne 0x4ece50
and edi, 0xfffffff8
mov edi, dword [edi + 4]
push 0
push 0x542008
and edi, 0xfffffff8
push edi
mov ecx, esi
call fcn.0049f810
push 0x53f2b0
lea eax, [esp + 0xf8]
push eax
mov ecx, esi
call fcn.0049f2a0
mov ecx, dword [esp + 0x28]
mov edx, dword [eax]
push 0
push ecx
push edx
mov ecx, edi
call fcn.0048f400
push 0x53f360
lea eax, [esp + 0xec]
push eax
mov ecx, esi
call fcn.0049f2a0
mov ecx, dword [eax]
push 0x5498e4
push ecx
mov ecx, edi
call fcn.00490090
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
push 0
push edx
call fcn.00490fb0
mov ecx, ebp
call fcn.00485280
test al, 1
je 0x4ecee1
mov ecx, ebp
call fcn.004023b0
cmp eax, 2
jne 0x4ecee1
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
push eax
call fcn.0048c780
jmp 0x4ecef9
push 0
jmp 0x4ecef2
mov ecx, ebp
call fcn.004852d0
cmp al, 3
jne 0x4ecef9
push 1
mov ecx, ebp
call fcn.0048e090
mov ecx, dword [esp + 0x58]
cmp ecx, dword [esp + 0x40]
jl 0x4ecde0
jmp 0x4ecaa0
push 2
lea ecx, [esp + 0x50]
call fcn.004ff530
mov edi, eax
push edi
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.0049f2a0
push edi
call fcn.00439d00
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
add esp, 4
push eax
mov ecx, edi
call fcn.0048bb40
test eax, eax
je 0x4ecffc
mov ecx, eax
call fcn.004852d0
mov edx, dword [esp + 0x20]
movzx ecx, al
mov dword [esp + 0x40], ecx
push edx
mov ecx, edi
call fcn.0048c780
test eax, eax
je 0x4ecffc
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 2
call fcn.00463050
lea ecx, [esp + 0x10]
call fcn.00411870
push 0
mov edi, eax
push 0x542008
push edi
mov ecx, esi
call fcn.0049f810
push 0x53f2b0
lea eax, [esp + 0xdc]
push eax
mov ecx, esi
call fcn.0049f2a0
mov ecx, dword [esp + 0x20]
mov edx, dword [eax]
push 0
push ecx
push edx
mov ecx, edi
call fcn.0048f400
push 0x53f360
lea eax, [esp + 0xfc]
push eax
mov ecx, esi
call fcn.0049f2a0
mov ecx, dword [eax]
push 0x5498dc
push ecx
mov ecx, edi
call fcn.00490090
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
push 0
push edx
call fcn.00490fb0
test byte [esp + 0x40], 2
je 0x4ecffc
mov dword [esp + 0x18], 1
mov dword [ebx + 0x9c], 1
jmp 0x4ecaa0
push 2
lea ecx, [esp + 0x50]
mov dword [esp + 0x1c], 1
call fcn.004ff530
push 2
lea ecx, [esp + 0x50]
mov edi, eax
call fcn.004ff530
push 0
mov ebp, eax
mov eax, dword [ebx]
push 0
push ebp
push edi
mov ecx, ebx
call dword [eax + 0x1c]
push edi
call fcn.00439d00
push ebp
call fcn.00439d00
add esp, 8
jmp 0x4ecaa0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov eax, dword [ebx + 0x94]
push 0x5498ac
push edi
add edx, ecx
mov ecx, dword [ebx + 0x90]
push edx
push eax
call fcn.004f14e0
add dword [esp + 0x58], edi
jmp 0x4ecaa0
mov ecx, dword [esp + 0x30]
call fcn.0048c020
test eax, eax
jne 0x4ed08f
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4ed0b2
mov edx, dword [ebx]
push 1
lea eax, [esp + 0x18]
push eax
push 0x5498a4
mov ecx, ebx
call dword [edx + 0xc]
test byte [ebx + 0x7c], 1
je 0x4ed0b2
mov dword [ebx + 0x9c], 1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4ed0c4
mov dword [ebx + 0xb8], 0
lea ecx, [esp + 0xfc]
call fcn.00471350
lea ecx, [esp + 0x48]
call fcn.004def50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0xc