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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x4c]
test edx, edx
je 0x4e0950
cmp byte [edx], 0x31
setne cl
cmp dword [esp + 0x5c], 0x38
setne dl
or dl, cl
jne 0x4e0950
test esi, esi
je 0x4e0720
mov ebx, dword [esi + 0x20]
mov dword [esi + 0x18], 0
test ebx, ebx
je 0x4e0920
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x4e0940
cmp dword [esp + 0x44], 0xffffffff
mov ecx, 6
cmovne ecx, dword [esp + 0x44]
test eax, eax
mov dword [esp + 0x44], ecx
js 0x4e0742
cmp eax, 0xf
mov edi, 1
jg 0x4e0730
mov ecx, dword [esp + 0x50]
sub ecx, 1
cmp ecx, 8
ja 0x4e0720
lea ecx, [eax - 8]
cmp ecx, 7
ja 0x4e0720
cmp dword [esp + 0x48], 8
jne 0x4e0720
cmp dword [esp + 0x54], 4
ja 0x4e0720
cmp dword [esp + 0x44], 9
ja 0x4e0720
cmp eax, 8
jne 0x4e0599
test dl, dl
jne 0x4e0720
cmp eax, 8
mov ebp, 9
mov dword [esp + 8], 0x16c4
cmovne ebp, eax
mov dword [esp + 4], 1
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call ebx
test eax, eax
mov ebx, eax
je 0x4e0981
mov dword [esi + 0x1c], eax
mov dword [eax + 0x18], edi
mov edi, 1
mov dword [eax + 0x30], ebp
mov dword [eax], esi
mov ecx, ebp
mov dword [eax + 4], 0x2a
mov dword [eax + 0x1c], 0
mov eax, edi
shl eax, cl
mov edx, 0xaaaaaaab
mov dword [ebx + 0x2c], eax
mov ebp, eax
lea eax, [eax - 1]
mov dword [ebx + 0x34], eax
mov eax, dword [esp + 0x50]
lea ecx, [eax + 7]
mov eax, edi
shl eax, cl
mov dword [ebx + 0x50], ecx
mov dword [ebx + 0x4c], eax
sub eax, 1
mov dword [ebx + 0x54], eax
mov eax, dword [esp + 0x50]
add eax, 9
mul edx
shr edx, 1
mov dword [ebx + 0x58], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], 2
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
mov dword [ebx + 0x38], eax
mov dword [esp + 8], 2
mov eax, dword [ebx + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
mov dword [ebx + 0x40], eax
mov dword [esp + 8], 2
mov eax, dword [ebx + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
mov dword [ebx + 0x44], eax
mov eax, dword [esp + 0x50]
mov dword [ebx + 0x16c0], 0
lea ecx, [eax + 6]
shl edi, cl
mov dword [ebx + 0x169c], edi
mov dword [esp + 8], 4
mov dword [esp + 4], edi
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
mov edx, dword [ebx + 0x169c]
mov ebp, dword [ebx + 0x38]
mov dword [ebx + 8], eax
lea ecx, [edx*4]
test ebp, ebp
mov dword [ebx + 0xc], ecx
je 0x4e0960
mov edi, dword [ebx + 0x40]
test edi, edi
je 0x4e0960
mov ecx, dword [ebx + 0x44]
test ecx, ecx
je 0x4e0960
test eax, eax
je 0x4e0960
mov ecx, edx
lea edx, [edx + edx*2]
mov byte [ebx + 0x24], 8
and ecx, 0xfffffffe
mov ebp, dword [esi + 0x20]
add ecx, eax
add eax, edx
mov dword [ebx + 0x1698], eax
mov eax, dword [esp + 0x44]
test ebp, ebp
mov dword [ebx + 0x16a4], ecx
mov dword [ebx + 0x84], eax
mov eax, dword [esp + 0x54]
mov dword [ebx + 0x88], eax
je 0x4e0720
mov edi, dword [esi + 0x24]
test edi, edi
je 0x4e0720
mov ebx, dword [esi + 0x1c]
test ebx, ebx
je 0x4e0720
cmp esi, dword [ebx]
je 0x4e0750
mov eax, 0xfffffffe
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
sub eax, 0x10
mov edx, 1
mov edi, 2
jmp 0x4e054f
neg eax
mov edx, 1
xor edi, edi
jmp 0x4e054f
mov edx, dword [ebx + 4]
cmp edx, 0x2a
lea ecx, [edx - 0x5b]
setne al
mov ebp, eax
lea eax, [edx - 0x39]
and eax, 0xffffffef
setne byte [esp + 0x1f]
cmp edx, 0x45
setne al
cmp ecx, 0x16
mov edi, eax
mov eax, 1
jbe 0x4e08c4
and edi, ebp
cmp edx, 0x29a
setne dl
and edx, edi
test byte [esp + 0x1f], dl
je 0x4e0796
test al, al
jne 0x4e0720
mov eax, dword [ebx + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x18]
test eax, eax
js 0x4e08e0
cmp eax, 2
je 0x4e08f3
cmp eax, 1
sbb edx, edx
and edx, 0x47
add edx, 0x2a
mov dword [ebx + 4], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004e82d0
mov dword [esi + 0x30], eax
mov dword [ebx + 0x28], 0
mov dword [esp], ebx
call fcn.004e6a70
mov ebx, dword [esi + 0x1c]
xor esi, esi
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 0x4e077f
neg eax
mov edx, 0x2a
cmp eax, 2
mov dword [ebx + 0x18], eax
jne 0x4e07de
mov dword [ebx + 4], 0x39
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004dc900
jmp 0x4e07fd
mov ecx, dword [esi + 0x24]
mov dword [esi + 0x20], 0x4e7970
mov ebx, 0x4e7970
mov dword [esi + 0x28], 0
test ecx, ecx
jne 0x4e0526
nop
mov dword [esi + 0x24], 0x4e7990
jmp 0x4e0526
add esp, 0x2c
mov eax, 0xfffffffa
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [str.insufficient_memory]
mov dword [ebx + 4], 0x29a
mov dword [esi + 0x18], eax
mov dword [esp], esi
call fcn.004e03a0
mov eax, 0xfffffffc
jmp 0x4e0725
mov eax, 0xfffffffc
jmp 0x4e0725