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

Disassembly:
sub esp, 0x850
push ebx
push ebp
push esi
mov esi, dword [esp + 0x860]
test esi, esi
push edi
jne 0x4d43a6
pop edi
pop esi
pop ebp
mov ax, 0x10
pop ebx
add esp, 0x850
ret 0xc
mov ecx, dword [0x579654]
mov eax, dword [esi + 0x54]
push ecx
push eax
call fcn.004cd560
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4d43d0
pop edi
pop esi
pop ebp
mov ax, 2
pop ebx
add esp, 0x850
ret 0xc
mov ax, word [ebx + 0x44]
test ax, ax
je 0x4d490a
cmp ax, 0xffff
je 0x4d490a
mov eax, dword [esp + 0x868]
cmp ax, word [ebx + 0x1a4]
ja 0x4d48f2
mov ebp, dword [esp + 0x86c]
test ebp, ebp
jne 0x4d4423
test ax, ax
je 0x4d446b
push ebx
push 0x10
call fcn.004cd880
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
mov ecx, dword [ebx + 0x5c]
test ecx, ecx
jne 0x4d4447
test ax, ax
je 0x4d4447
push ebx
push 0x10
call fcn.004cd880
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
cmp word [ebp], 0
jne 0x4d446b
test ax, ax
je 0x4d446b
push ebx
push 0x10
call fcn.004cd880
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x90]
xor edx, edx
rep stosd dword es:[edi], eax
mov ecx, 0x64
lea edi, [esp + 0x3b0]
rep stosd dword es:[edi], eax
mov ecx, 0x64
lea edi, [esp + 0x220]
rep stosd dword es:[edi], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x3c], eax
xor ecx, ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], eax
movsx ecx, word [ebx + 0x5a]
lea eax, [esp + 0x38]
mov dx, word [ebx + ecx*2 + 0x46]
push edx
push 0x56a478
push eax
call fcn.004fa9f4
xor ecx, ecx
lea edx, [esp + 0x38]
mov cx, word [ebx + 0x44]
push ecx
push 0x56a478
push edx
call fcn.004fa9f4
mov eax, dword [esp + 0x880]
lea ecx, [esp + 0x38]
and eax, 0xffff
push eax
push 0x56a478
push ecx
call fcn.004fa9f4
add esp, 0x24
test ebp, ebp
jne 0x4d453d
lea edx, [esp + 0x14]
push 0x56a518
push edx
call fcn.004fa9f4
add esp, 8
jmp 0x4d4556
xor eax, eax
lea ecx, [esp + 0x14]
mov ax, word [ebp]
push eax
push 0x56a478
push ecx
call fcn.004fa9f4
add esp, 0xc
lea edx, [esp + 0x50]
push 0x40
push edx
push esi
call fcn.004d4140
test ax, ax
jne 0x4d493d
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
push 4
push 0x56a470
call fcn.004d8790
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x4d45ad
push ebx
push 0x4a
call fcn.004cd880
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x3b0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004f9aad
lea ecx, [esp + 0x48]
lea edx, [esp + 0x3b4]
push ecx
push edx
push 0x56a508
push 3
push 0x56a46c
call fcn.004d8790
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x4d461e
push ebx
push 0x4a
call fcn.004cd880
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x220]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004f9aad
lea ecx, [esp + 0x224]
push ecx
call fcn.004d8870
mov edx, eax
add esp, 8
test edx, edx
jne 0x4d467e
push ebx
push 0x4a
call fcn.004cd880
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x220]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004f9aad
lea ecx, [esp + 0x94]
lea edx, [esp + 0x224]
push ecx
push ebx
push edx
call fcn.004d6570
add esp, 0x10
test ax, ax
je 0x4d46e5
push ebx
push eax
call fcn.004cd7b0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
lea eax, [esp + 0x90]
push eax
call fcn.004d8560
mov esi, eax
add esp, 4
test esi, esi
jne 0x4d4713
push ebx
push 0x42
call fcn.004cd880
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
lea ecx, [esp + 0x90]
lea edx, [esp + 0x6d0]
push ecx
lea eax, [esp + 0x544]
push edx
push eax
push esi
push 3
push 0x56a46c
call fcn.004d83c0
push esi
mov edi, eax
call fcn.004f9aad
add esp, 0x1c
test di, di
je 0x4d4760
push ebx
push 0x42
call fcn.004cd880
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
push 0
call fcn.004f9aad
add esp, 4
mov edi, 0x56a464
lea esi, [esp + 0x540]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x4d479e
test al, al
je 0x4d479a
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x4d479e
add esi, 2
add edi, 2
test al, al
jne 0x4d4776
xor eax, eax
jmp 0x4d47a3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4d4812
lea eax, [esp + 0x6d0]
push eax
call fcn.004fb9d8
mov esi, eax
add esp, 4
cmp si, 0x47
je 0x4d47ca
cmp word [esp + 0x868], 0
jne 0x4d47fb
mov edi, 1
push edi
push ebx
call fcn.004cdab0
push ebx
push 0x579654
call fcn.004d49c0
push ebx
call fcn.004f9aad
mov eax, dword [0x56b308]
add esp, 0x14
xor ebx, ebx
cmp eax, edi
je 0x4d47fb
mov dword [0x56b308], edi
push ebx
push esi
call fcn.004cd880
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x90]
push ecx
mov edi, 1
push edx
push edi
push 0x56a470
call fcn.004d83c0
add esp, 0x10
test ax, ax
je 0x4d484f
push ebx
push 0x42
call fcn.004cd880
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
test ebp, ebp
je 0x4d487c
cmp word [esp + 0x868], 0
je 0x4d4887
lea eax, [esp + 0x14]
push eax
call fcn.004fb9d8
mov word [ebp], ax
mov ecx, dword [ebx + 0x5c]
and eax, 0xffff
add esp, 4
sub ecx, eax
mov dword [ebx + 0x5c], ecx
cmp word [esp + 0x868], 0
jne 0x4d48ca
push edi
push ebx
call fcn.004cdab0
push ebx
push 0x579654
call fcn.004d49c0
push ebx
call fcn.004f9aad
mov eax, dword [0x56b308]
add esp, 0x14
cmp eax, edi
je 0x4d48b1
mov dword [0x56b308], edi
push 0
push 0
call fcn.004cd880
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
lea esi, [ebx + 0x68]
push esi
call fcn.004fbea1
mov edi, dword [esi]
push ebx
add edi, 0x78
push 0
mov dword [esi], edi
call fcn.004cd880
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
push ebx
push 5
call fcn.004cd880
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc
mov edi, 1
push edi
push ebx
call fcn.004cdab0
push ebx
push 0x579654
call fcn.004d49c0
push ebx
call fcn.004f9aad
mov eax, dword [0x56b308]
add esp, 0x14
cmp eax, edi
je 0x4d4939
mov dword [0x56b308], edi
mov ax, 0x47
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x850
ret 0xc