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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc8
mov eax, dword [0x7cdffc]
xor eax, esp
mov dword [esp + 0xc4], eax
push esi
mov esi, edx
mov dword [esp + 0x34], ecx
xor ecx, ecx
mov dword [esp + 0x14], esi
push edi
xor edi, edi
mov dword [esp + 0x44], ecx
mov eax, dword [esi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], edi
mov eax, dword [eax + 0x24]
mov eax, dword [eax]
mov dword [esp + 0x30], eax
cmp dword [esi + 0xc], ecx
jne 0x538398
push ecx
push 1
push ecx
mov edx, 0x7838d8
jmp 0x5387b5
xorps xmm0, xmm0
lea eax, [esp + 0x3c]
push eax
xor edx, edx
movaps xmmword [esp + 0x54], xmm0
mov ecx, esi
movaps xmmword [esp + 0x64], xmm0
call fcn.00536850
mov esi, eax
add esp, 4
test esi, esi
jne 0x5384da
mov eax, dword [esp + 0x3c]
lea edi, [eax + eax*2]
shl edi, 2
call fcn.0051fa00
test eax, eax
je 0x5383e3
mov dword [esp + 0x68], esi
xor edi, edi
mov esi, 7
jmp 0x5384da
test edi, edi
jg 0x5383fb
mov dword [esp + 0x68], 0
mov esi, 7
xor edi, edi
jmp 0x5384da
mov eax, edi
cdq
push edx
push eax
call fcn.004b42e0
add esp, 8
mov dword [esp + 0x68], eax
test eax, eax
jne 0x53841a
lea esi, [eax + 7]
xor edi, edi
jmp 0x5384da
mov ecx, dword [esp + 0x18]
xor edi, edi
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x48], edi
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x60], eax
mov eax, dword [ecx + 0x24]
mov dword [esp + 0x64], eax
cmp dword [edx + 0x18], edi
jle 0x538413
nop
mov ecx, dword [ecx + 0xc]
lea eax, [esp + 0x50]
push eax
mov edx, 0x5382a0
mov dword [esp + 0x88], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], 0
call fcn.005367b0
add esp, 4
lea eax, [edi + 1]
mov dword [esp + 0x34], eax
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 8]
call fcn.004d7550
push dword [esp + 0x3c]
mov edi, eax
mov eax, dword [esp + 0x24]
push dword [eax + 8]
call fcn.004d7250
add esp, 0x10
test edi, edi
jne 0x538535
mov eax, dword [esp + 0x18]
push dword [esp + 0x34]
push dword [eax + 8]
call fcn.004d7710
add esp, 8
cmp eax, 5
je 0x538788
lea esi, [edi + 7]
mov edi, dword [esp + 0x14]
push dword [esp + 0x68]
call fcn.004b4670
mov eax, dword [esp + 0x20]
add esp, 4
push dword [eax + 0xf4]
call fcn.004df420
mov eax, dword [esp + 0x20]
add esp, 4
mov dword [eax + 0xf4], 0
test esi, esi
je 0x5387a6
push esi
push dword [esp + 0x3c]
call fcn.004d68a0
push edi
call fcn.004b4670
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x2c]
push ecx
push eax
mov eax, dword [esp + 0x20]
push edi
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x24]
call fcn.0052add0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x5384d6
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x44]
push dword [esp + 0x40]
mov eax, dword [eax + 0x14]
call eax
add esp, 0x18
mov dword [esp + 0x28], eax
test eax, eax
jne 0x538768
nop word [eax + eax]
xor ecx, ecx
mov esi, SysReAllocString
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jle 0x538763
mov eax, dword [esp + 0x68]
mov edi, ecx
add eax, 4
cmp dword [eax - 4], 0
lea edx, [eax - 4]
je 0x5385da
mov ecx, dword [eax]
sub ecx, dword [eax + 4]
cmp ecx, esi
jge 0x5385da
mov esi, ecx
mov dword [esp + 0x20], edx
jmp 0x5385de
mov edx, dword [esp + 0x20]
add eax, 0xc
sub edi, 1
jne 0x5385c0
test edx, edx
je 0x538763
mov edi, dword [edx]
mov al, byte [edi]
test al, 0xfe
jne 0x5385fe
mov dword [edx], 0
jmp 0x53862d
test al, al
jns 0x538617
lea edx, [esp + 0x40]
mov ecx, edi
call fcn.00523350
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x20]
jmp 0x538623
movzx ecx, al
mov eax, 1
mov dword [esp + 0x40], ecx
add eax, edi
mov dword [edx], eax
lea eax, [ecx - 2]
add dword [edx + 4], eax
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x78], esi
jge 0x53866d
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x44]
push dword [esp + 0x40]
mov eax, dword [eax + 0x14]
call eax
add esp, 0x18
test eax, eax
je 0x538631
test eax, eax
jne 0x53874c
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
sub eax, ecx
push eax
push ecx
mov ecx, dword [esp + 0x28]
mov eax, 0x2aaaaaab
sub ecx, dword [esp + 0x70]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push dword [esp + 0x54]
lea eax, [esp + 0x98]
push str._d__d__d__d
push eax
push 0x40
call fcn.004b6790
lea esi, [esp + 0xa4]
add esp, 0x1c
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x5386c2
mov eax, dword [esp + 0x24]
sub esi, ecx
mov edi, dword [esp + 0x44]
add eax, esi
mov dword [esp + 0x28], eax
inc eax
cmp eax, edi
jl 0x53870e
add edi, 0x64
add edi, esi
call fcn.0051fa00
test eax, eax
jne 0x538745
mov ecx, dword [esp + 0x14]
test edi, edi
cmovns eax, edi
cdq
push edx
push eax
call fcn.004b47a0
add esp, 8
test eax, eax
je 0x538745
mov dword [esp + 0x14], eax
mov dword [esp + 0x44], edi
jmp 0x538712
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x24]
lea ecx, [esp + 0x88]
push esi
push ecx
push eax
call fcn.006e6940
mov ecx, dword [esp + 0x34]
add esp, 0xc
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], 0
mov byte [ecx + eax], 0
jmp 0x5385a0
mov eax, 7
jmp 0x538768
cmp eax, 0x65
jne 0x538768
mov edx, dword [esp + 0x1c]
mov ecx, 0x10b
cmp dword [edx + 0x28], 0
cmove eax, ecx
jmp 0x538768
mov eax, 0x65
push dword [esp + 0x2c]
xor esi, esi
cmp eax, 0x65
cmovne esi, eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x10]
call eax
add esp, 4
test esi, esi
jne 0x5384d6
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x48], edi
cmp edi, dword [eax + 0x18]
jge 0x5384d6
mov ecx, dword [esp + 0x18]
jmp 0x538440
mov eax, dword [esp + 0x24]
mov edx, edi
push fcn.004b4670
push 1
dec eax
push eax
mov esi, dword [esp + 0x44]
mov ecx, dword [esi]
call fcn.004d1160
add esp, 0xc
cmp eax, 0x12
jne 0x5387e4
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.004d1160
add esp, 0xc
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
xor ecx, esp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret