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

Disassembly:
sub esp, 0x168
xor eax, eax
mov dword [esp + 0x18], eax
push ebx
mov dword [esp + 0x20], eax
push esi
mov eax, dword [esp + 0x178]
push edi
push ebp
and eax, 0xbfffffff
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x180]
cmp dword [esp + 0x18], eax
je 0x4dae61
or dword [esp + 0x18], 0x20000000
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
mov edx, dword [esp + 0x180]
push eax
mov esi, dword [esp + 0x180]
push ecx
push 0x200
push 0
push edx
push esi
call fcn.004d9160
add esp, 0x18
mov ebx, eax
test ebx, ebx
jne 0x4daeea
mov eax, dword [esp + 0x10]
push eax
call fcn.004d9950
add esp, 4
cmp eax, 1
je 0x4daef7
mov eax, dword [esp + 0x180]
push eax
push esi
call fcn.004bc0c0
add esp, 8
push eax
push 0xffff809c
push 2
push esi
call fcn.004bda00
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov ebx, eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x180]
push eax
push ecx
push 0x100
push 0
push 0
push edx
push esi
call fcn.004d91c0
add esp, 0x1c
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x168
ret
mov edi, dword [esp + 0x10]
lea ebp, [esp + 0x38]
mov dword [esp + 0x20], 0
add edi, 0x40
mov eax, dword [edi]
mov dword [ebp], eax
cmp byte [edi], 0
je 0x4daffc
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov bl, byte [esp + 0x20]
push ecx
add ebx, 0x5000
shl ebx, 0x10
or ebx, dword [esp + 0x1c]
mov eax, ebx
and eax, 0xbfffffff
mov dword [esp + 0x34], eax
push eax
push esi
call fcn.004f9360
add esp, 0xc
cmp eax, 1
sbb eax, eax
neg eax
cmp dword [esp + 0x24], 0
mov dword [esp + 0x34], eax
jge 0x4dafca
test esi, esi
je 0x4daf6a
mov eax, dword [esi + 0xac]
test eax, eax
je 0x4daf6a
mov eax, dword [eax + 0x2c]
jmp 0x4daf6c
xor eax, eax
push 4
push 0x52186c
push ebp
push eax
call fcn.004aea20
add esp, 0x10
test ax, ax
je 0x4dafca
mov cx, word [edi + 0xc]
test cx, cx
je 0x4dafca
cmp dword [esp + 0x34], 0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov eax, ebx
jne 0x4dafa0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x78]
push eax
push 0x100
movsx eax, cx
shl eax, 0xa
mov ecx, dword [esp + 0x188]
push eax
push ecx
push esi
call fcn.004d90a0
mov dword [esp + 0x3c], eax
add esp, 0x14
cmp dword [esp + 0x34], 0
je 0x4daffc
push 3
push ebx
push esi
call fcn.004d9400
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x4daeea
mov eax, dword [esp + 0x1c]
mov dword [eax + 0xc], 0
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0xc]
mov dword [eax + 8], edx
add edi, 0x3c
add ebp, 4
lea eax, [esp + 0x78]
inc dword [esp + 0x20]
cmp ebp, eax
jb 0x4daf0a
mov edi, dword [esp + 0x10]
xor eax, eax
mov ecx, 0x100
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x180]
push eax
push ecx
push 1
push 0
push 0
push edx
push esi
call fcn.004d91c0
add esp, 0x1c
mov ebx, eax
test ebx, ebx
jne 0x4daeea
mov eax, dword [esp + 0x180]
push 0x2003
push eax
push esi
call fcn.004d9400
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x4daeea
mov eax, dword [esp + 0x180]
push 0
push 0x400
push eax
push esi
call fcn.004d92c0
add esp, 0x10
cmp eax, 0x400
je 0x4db0b2
mov eax, dword [esp + 0x180]
push eax
push esi
call fcn.004bc0c0
add esp, 8
push eax
push 0xffff809a
push 2
push esi
call fcn.004bda00
add esp, 0x10
mov ebx, eax
jmp 0x4daeea
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
mov edx, dword [esp + 0x180]
push eax
push ecx
push 0x200
push 0
push edx
push esi
call fcn.004d9160
add esp, 0x18
mov ebx, eax
test ebx, ebx
jne 0x4daeea
mov edi, dword [esp + 0x10]
xor ebx, ebx
add edi, 0x40
lea ebp, [esp + 0x38]
mov eax, dword [ebp]
cmp ebx, dword [esp + 0x24]
mov dword [edi], eax
jne 0x4db116
lea eax, [esp + 0x78]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0
push edx
push esi
call fcn.004d9100
add esp, 0x14
cmp eax, dword [esp + 0x28]
jne 0x4db17d
add ebp, 4
add edi, 0x3c
inc ebx
lea eax, [esp + 0x78]
cmp ebp, eax
jb 0x4db0eb
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x180]
push eax
push ecx
push 0x200
push 0
push 0
push edx
push esi
call fcn.004d91c0
add esp, 0x1c
mov ebx, eax
test ebx, ebx
jne 0x4daeea
mov eax, dword [esp + 0x180]
push 5
push eax
push esi
call fcn.004d9400
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x4daeea
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x168
ret
mov eax, dword [esp + 0x2c]
push eax
push esi
call fcn.004bc0c0
add esp, 8
push eax
push 0xffff809a
push 2
push esi
call fcn.004bda00
add esp, 0x10
mov ebx, eax
jmp 0x4daeea