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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
test eax, eax
je 0x4e0d80
cmp byte [eax], 0x31
jne 0x4e0d80
cmp dword [esp + 0x4c], 0x38
jne 0x4e0d80
test ebx, ebx
je 0x4e0b63
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x18], 0
test eax, eax
je 0x4e0d50
mov esi, dword [ebx + 0x24]
test esi, esi
je 0x4e0d70
cmp edi, 0xffffffff
je 0x4e0b70
cmp edi, 9
ja 0x4e0b63
mov dword [esp + 8], 0x16c4
mov dword [esp + 4], 1
mov edx, dword [ebx + 0x28]
mov dword [esp], edx
call eax
test eax, eax
mov esi, eax
je 0x4e0db1
mov dword [ebx + 0x1c], eax
mov dword [eax], ebx
mov dword [eax + 4], 0x2a
mov dword [eax + 0x18], 1
mov dword [eax + 0x1c], 0
mov dword [eax + 0x30], 0xf
mov dword [eax + 0x2c], 0x8000
mov dword [eax + 0x34], 0x7fff
mov dword [eax + 0x50], 0xf
mov dword [eax + 0x4c], 0x8000
mov dword [eax + 0x54], 0x7fff
mov dword [eax + 0x58], 5
mov dword [esp + 8], 2
mov dword [esp + 4], 0x8000
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call dword [ebx + 0x20]
mov dword [esi + 0x38], eax
mov dword [esp + 8], 2
mov eax, dword [esi + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call dword [ebx + 0x20]
mov dword [esi + 0x40], eax
mov dword [esp + 8], 2
mov eax, dword [esi + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call dword [ebx + 0x20]
mov dword [esi + 0x16c0], 0
mov dword [esi + 0x44], eax
mov dword [esi + 0x169c], 0x4000
mov dword [esp + 8], 4
mov dword [esp + 4], 0x4000
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call dword [ebx + 0x20]
mov edx, dword [esi + 0x169c]
mov dword [esi + 8], eax
lea ecx, [edx*4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x4e0d90
mov ebp, dword [esi + 0x40]
test ebp, ebp
je 0x4e0d90
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x4e0d90
test eax, eax
je 0x4e0d90
mov byte [esi + 0x24], 8
mov ebp, dword [ebx + 0x20]
mov ecx, edx
lea edx, [edx + edx*2]
and ecx, 0xfffffffe
mov dword [esi + 0x84], edi
add ecx, eax
mov dword [esi + 0x88], 0
add eax, edx
test ebp, ebp
mov dword [esi + 0x16a4], ecx
mov dword [esi + 0x1698], eax
je 0x4e0b63
mov edi, dword [ebx + 0x24]
test edi, edi
je 0x4e0b63
mov esi, dword [ebx + 0x1c]
test esi, esi
je 0x4e0b63
cmp ebx, dword [esi]
je 0x4e0b80
mov eax, 0xfffffffe
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, 6
jmp 0x4e09f6
mov edx, dword [esi + 4]
cmp edx, 0x2a
lea ecx, [edx - 0x5b]
setne al
mov edi, eax
lea eax, [edx - 0x39]
and eax, 0xffffffef
setne byte [esp + 0x1f]
cmp edx, 0x45
setne al
cmp ecx, 0x16
mov ebp, eax
mov eax, 1
jbe 0x4e0cf4
and edi, ebp
cmp edx, 0x29a
setne dl
and edx, edi
test byte [esp + 0x1f], dl
je 0x4e0bc6
test al, al
jne 0x4e0b63
mov eax, dword [esi + 8]
mov dword [ebx + 0x14], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x2c], 2
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
test eax, eax
js 0x4e0d10
cmp eax, 2
je 0x4e0d23
cmp eax, 1
sbb edx, edx
and edx, 0x47
add edx, 0x2a
mov dword [esi + 4], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004e82d0
mov dword [ebx + 0x30], eax
mov dword [esi + 0x28], 0
mov dword [esp], esi
xor esi, esi
call fcn.004e6a70
mov ebx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x44]
add eax, eax
mov dword [ebx + 0x3c], eax
mov eax, dword [ebx + 0x4c]
add eax, 0x7fffffff
lea ecx, [eax + eax]
mov word [edx + eax*2], si
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x84]
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x16b4], 0
mov dword [ebx + 0x78], 2
lea eax, [eax + eax*2]
mov dword [ebx + 0x60], 2
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x48], 0
shl eax, 2
lea edx, [eax + 0x516b80]
movzx ecx, word [eax + 0x516b82]
movzx eax, word [eax + 0x516b80]
mov dword [ebx + 0x8c], eax
movzx eax, word [edx + 4]
mov dword [ebx + 0x80], ecx
mov dword [ebx + 0x90], eax
movzx eax, word [edx + 6]
mov dword [ebx + 0x7c], eax
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x401001
shr eax, cl
and eax, 1
xor eax, 1
and eax, 1
jmp 0x4e0baf
neg eax
mov edx, 0x2a
cmp eax, 2
mov dword [esi + 0x18], eax
jne 0x4e0c0e
mov dword [esi + 4], 0x39
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004dc900
jmp 0x4e0c2d
mov esi, dword [ebx + 0x24]
mov dword [ebx + 0x20], 0x4e7970
mov eax, 0x4e7970
mov dword [ebx + 0x28], 0
test esi, esi
jne 0x4e09e4
nop
mov dword [ebx + 0x24], 0x4e7990
jmp 0x4e09e4
add esp, 0x2c
mov eax, 0xfffffffa
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [str.insufficient_memory]
mov dword [esi + 4], 0x29a
mov dword [ebx + 0x18], eax
mov dword [esp], ebx
call fcn.004e03a0
mov eax, 0xfffffffc
jmp 0x4e0b68
mov eax, 0xfffffffc
jmp 0x4e0b68