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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc8
mov eax, dword [0x5876e0]
xor eax, esp
mov dword [esp + 0xc4], eax
mov eax, dword [edx]
mov dword [esp + 8], eax
push esi
mov esi, dword [edx + 0xc]
mov eax, dword [eax + 0x24]
push edi
xor edi, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x38], ecx
mov eax, dword [eax]
mov dword [esp + 0x28], eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x4c], edi
test esi, esi
jne 0x4e9840
push esi
push 1
push esi
mov edx, 0x5637cb
mov esi, ecx
jmp 0x4e9ce5
xorps xmm0, xmm0
mov dword [esp + 0x54], edi
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x70], xmm0
mov dword [esp + 0x58], edi
mov dword [esp + 0x50], edx
mov eax, dword [esi]
mov dword [esp + 0x18], edi
mov dword [esp + 8], eax
cmp eax, 5
je 0x4e98b1
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x50]
push eax
push 0x4e7ac0
lea edx, [esp + 0x20]
call fcn.004e7a00
mov edi, eax
add esp, 8
test edi, edi
jne 0x4e98ab
cmp dword [esp + 8], 2
je 0x4e98ab
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x50]
push eax
push 0x4e7ac0
lea edx, [esp + 0x20]
call fcn.004e7a00
add esp, 8
mov edi, eax
mov eax, dword [esp + 0x58]
jmp 0x4e98c1
mov eax, dword [esi + 0x14]
xor edi, edi
mov dword [esp + 0x54], 1
mov eax, dword [eax + 0x40]
mov dword [esp + 0x34], eax
test edi, edi
jne 0x4e9c76
lea esi, [eax + eax*2]
shl esi, 2
call fcn.004cdc20
test eax, eax
jne 0x4e9c69
test esi, esi
jle 0x4e9c69
mov eax, esi
cdq
push edx
push eax
call fcn.00459930
add esp, 8
mov dword [esp + 0x78], eax
test eax, eax
je 0x4e9c71
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x60], ecx
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x70], eax
mov eax, dword [ecx + 0x24]
mov dword [esp + 0x74], eax
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [edx + 0x18], eax
jle 0x4e9c76
lea ebx, [ebx]
mov esi, dword [ecx + 0xc]
mov dword [esp + 0x64], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x68], 0
mov eax, dword [esi]
cmp eax, 5
mov dword [esp + 8], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x1c], 0
push eax
je 0x4e99b1
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x20]
push fcn.004e9740
call fcn.004e7a00
add esp, 8
test eax, eax
jne 0x4e99bc
cmp dword [esp + 8], 2
je 0x4e99bc
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x60]
push eax
push fcn.004e9740
lea edx, [esp + 0x24]
call fcn.004e7a00
add esp, 8
jmp 0x4e99bc
push 0
push esi
call fcn.004e9740
add esp, 0xc
mov eax, dword [esp + 0x18]
inc eax
push eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
push dword [eax + 8]
call fcn.0047f660
push dword [esp + 0x24]
mov esi, eax
mov eax, dword [esp + 0x20]
push dword [eax + 8]
call fcn.0047f3c0
add esp, 0x10
test esi, esi
jne 0x4e9a0c
mov eax, dword [esp + 0x14]
push dword [esp + 0x1c]
push dword [eax + 8]
call fcn.0047f7f0
add esp, 8
cmp eax, 5
jne 0x4e9c71
jmp 0x4e9c4f
lea ecx, [esp + 0x40]
push ecx
push eax
mov eax, dword [esp + 0x1c]
push esi
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x24]
call fcn.004da880
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4e9c76
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x3c]
push dword [esp + 0x54]
mov eax, dword [eax + 0x14]
call eax
mov edi, eax
add esp, 0x18
mov dword [esp + 8], edi
test edi, edi
jne 0x4e9c34
lea ebx, [ebx]
xor ecx, ecx
mov esi, SysReAllocString
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x34]
test ecx, ecx
jle 0x4e9c39
mov eax, dword [esp + 0x78]
mov edi, ecx
add eax, 4
cmp dword [eax - 4], 0
lea edx, [eax - 4]
je 0x4e9aaa
mov ecx, dword [eax]
sub ecx, dword [eax + 4]
cmp ecx, esi
jge 0x4e9aaa
mov esi, ecx
mov dword [esp + 0x20], edx
jmp 0x4e9aae
mov edx, dword [esp + 0x20]
add eax, 0xc
dec edi
jne 0x4e9a90
test edx, edx
je 0x4e9c39
mov edi, dword [edx]
mov al, byte [edi]
test al, 0xfe
jne 0x4e9acc
mov dword [edx], 0
jmp 0x4e9afb
test al, al
jns 0x4e9ae5
lea edx, [esp + 0x48]
mov ecx, edi
call fcn.004d1da0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x20]
jmp 0x4e9af1
movzx ecx, al
mov eax, 1
mov dword [esp + 0x48], ecx
add eax, edi
mov dword [edx], eax
lea eax, [ecx - 2]
add dword [edx + 4], eax
mov edi, dword [esp + 8]
nop
cmp dword [esp + 0x2c], esi
jge 0x4e9b35
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x3c]
push dword [esp + 0x54]
mov eax, dword [eax + 0x14]
call eax
mov edi, eax
add esp, 0x18
test edi, edi
je 0x4e9b00
test edi, edi
jne 0x4e9c1e
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x30]
sub eax, ecx
push eax
push ecx
mov ecx, dword [esp + 0x28]
mov eax, 0x2aaaaaab
sub ecx, dword [esp + 0x80]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x98]
push str._d__d__d__d
push eax
push 0x40
call fcn.0045bd40
lea esi, [esp + 0xa4]
add esp, 0x1c
lea ecx, [esi + 1]
lea ebx, [ebx]
mov al, byte [esi]
inc esi
test al, al
jne 0x4e9b90
mov eax, dword [esp + 0x24]
sub esi, ecx
mov edi, dword [esp + 0x4c]
add eax, esi
mov dword [esp + 8], eax
inc eax
cmp eax, edi
jl 0x4e9be0
add edi, 0x64
add edi, esi
call fcn.004cdc20
test eax, eax
jne 0x4e9c17
xor ecx, ecx
mov eax, edi
test edi, edi
cmovs eax, ecx
mov ecx, dword [esp + 0xc]
cdq
push edx
push eax
call fcn.00459d50
add esp, 8
test eax, eax
je 0x4e9c17
mov dword [esp + 0xc], eax
mov dword [esp + 0x4c], edi
jmp 0x4e9be4
mov eax, dword [esp + 0xc]
add eax, dword [esp + 0x24]
lea ecx, [esp + 0x88]
push esi
push ecx
push eax
call fcn.00511d80
mov ecx, dword [esp + 0x14]
add esp, 0xc
mov eax, dword [esp + 0xc]
mov dword [esp + 0x24], ecx
mov dword [esp + 8], 0
mov byte [ecx + eax], 0
jmp 0x4e9a70
mov edi, 7
jmp 0x4e9c3b
cmp edi, 0x65
jne 0x4e9c3b
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x28], 0
jne 0x4e9c39
mov edi, 0x10b
jmp 0x4e9c3b
cmp edi, 0x65
jne 0x4e9c3b
xor edi, edi
mov eax, dword [esp + 0x28]
push dword [esp + 0x40]
mov eax, dword [eax + 0x10]
call eax
add esp, 4
test edi, edi
jne 0x4e9c76
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
cmp eax, dword [ecx + 0x18]
jge 0x4e9c76
mov ecx, dword [esp + 0x14]
jmp 0x4e9930
mov dword [esp + 0x78], 0
mov edi, 7
push dword [esp + 0x78]
call fcn.00459c50
mov eax, dword [esp + 0x14]
add esp, 4
push dword [eax + 0xf4]
call fcn.00487550
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [eax + 0xf4], 0
test edi, edi
je 0x4e9cd0
push edi
push dword [esp + 0x3c]
call fcn.0047ea40
push dword [esp + 0x14]
call fcn.00459c50
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.0050904e
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0xc]
dec eax
mov esi, dword [esp + 0x38]
push fcn.00459c50
push 1
push eax
mov ecx, dword [esi]
call fcn.00478640
add esp, 0xc
cmp eax, 0x12
jne 0x4e9d10
mov ecx, dword [esi]
mov edx, str.string_or_blob_too_big
push 0
push 1
push 0xffffffffffffffff
mov dword [esi + 0x14], eax
mov byte [esi + 0x19], 1
call fcn.00478640
add esp, 0xc
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
xor ecx, esp
call fcn.0050904e
mov esp, ebp
pop ebp
ret