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

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x4d9e2c
lea eax, [ecx - 2]
pop esi
ret
mov eax, dword [esi + 0x20]
mov dword [esi + 0x18], 0
test eax, eax
jne 0x4d9e4d
mov dword [esi + 0x28], eax
xor ecx, ecx
mov dword [esi + 0x20], 0x4dc550
mov eax, 0x4dc550
jmp 0x4d9e50
mov ecx, dword [esi + 0x28]
cmp dword [esi + 0x24], 0
jne 0x4d9e5d
mov dword [esi + 0x24], 0x4dc570
push edi
push 0x16c4
push 1
push ecx
call eax
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4d9e77
lea eax, [edi - 4]
pop edi
pop esi
ret
mov dword [esi + 0x1c], edi
push ebx
push 2
mov dword [edi], esi
mov dword [edi + 4], 0x2a
mov dword [edi + 0x18], 1
mov dword [edi + 0x1c], 0
mov dword [edi + 0x30], 0xf
mov dword [edi + 0x2c], 0x8000
mov dword [edi + 0x34], 0x7fff
mov dword [edi + 0x50], 0xf
mov dword [edi + 0x4c], 0x8000
mov dword [edi + 0x54], 0x7fff
mov dword [edi + 0x58], 5
mov eax, dword [esi + 0x20]
push 0x8000
push dword [esi + 0x28]
call eax
push 2
push dword [edi + 0x2c]
mov dword [edi + 0x38], eax
push dword [esi + 0x28]
mov eax, dword [esi + 0x20]
call eax
push 2
push dword [edi + 0x4c]
mov dword [edi + 0x40], eax
push dword [esi + 0x28]
mov eax, dword [esi + 0x20]
call eax
push 4
mov dword [edi + 0x44], eax
mov dword [edi + 0x16c0], 0
mov dword [edi + 0x169c], 0x4000
mov eax, dword [esi + 0x20]
push 0x4000
push dword [esi + 0x28]
call eax
mov ebx, dword [edi + 0x169c]
add esp, 0x30
cmp dword [edi + 0x38], 0
mov edx, eax
mov dword [edi + 8], edx
lea ecx, [ebx*4]
mov dword [edi + 0xc], ecx
je 0x4da101
cmp dword [edi + 0x40], 0
je 0x4da101
cmp dword [edi + 0x44], 0
je 0x4da101
test edx, edx
je 0x4da101
mov eax, ebx
mov dword [edi + 0x84], 9
shr eax, 1
mov ecx, esi
mov dword [edi + 0x88], 0
mov byte [edi + 0x24], 8
lea eax, [edx + eax*2]
mov dword [edi + 0x16a4], eax
lea eax, [edx + ebx*2]
add eax, ebx
mov dword [edi + 0x1698], eax
call fcn.004da120
test eax, eax
je 0x4d9f9c
mov edi, 0xfffffffe
pop ebx
mov eax, edi
pop edi
pop esi
ret
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov eax, dword [edi + 8]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x18]
mov dword [edi + 0x14], 0
test eax, eax
jns 0x4d9fd4
neg eax
mov dword [edi + 0x18], eax
cmp eax, 2
jne 0x4d9fde
lea ecx, [eax + 0x37]
jmp 0x4d9fed
test eax, eax
mov ecx, 0x71
mov edx, 0x2a
cmovne ecx, edx
mov dword [edi + 4], ecx
cmp eax, 2
jne 0x4d9ff9
xor eax, eax
jmp 0x4da007
push 0
xor edx, edx
xor ecx, ecx
call fcn.004dc580
add esp, 4
mov dword [esi + 0x30], eax
mov ecx, edi
lea eax, [edi + 0x94]
mov dword [edi + 0x28], 0
mov dword [edi + 0xb18], eax
lea eax, [edi + 0x988]
mov dword [edi + 0xb24], eax
lea eax, [edi + 0xa7c]
mov dword [edi + 0xb30], eax
xor eax, eax
mov dword [edi + 0xb20], 0x577474
mov dword [edi + 0xb2c], 0x5769f4
mov dword [edi + 0xb38], 0x576f2c
mov word [edi + 0x16b8], ax
mov dword [edi + 0x16bc], eax
call fcn.004dd070
mov esi, dword [esi + 0x1c]
xor edx, edx
xor edi, edi
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.00525340
mov eax, dword [esi + 0x84]
add esp, 0xc
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x580e1a]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x580e18]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x580e1c]
mov dword [esi + 0x90], eax
movzx eax, word [ecx*4 + 0x580e1e]
mov dword [esi + 0x7c], eax
mov eax, edi
pop ebx
mov dword [esi + 0x6c], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x16b4], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x48], edi
pop edi
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
pop esi
ret
mov eax, dword [str.insufficient_memory]
mov ecx, esi
mov dword [edi + 4], 0x29a
mov dword [esi + 0x18], eax
call fcn.004dac00
pop ebx
pop edi
mov eax, 0xfffffffc
pop esi
ret