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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5af841
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x6216ec]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push esi
push edi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x24], ecx
mov ecx, dword [edx + 0x44]
xor ebx, ebx
push esi
mov dword [esp + 0x24], ebx
call ecx
test eax, eax
js 0x5302d0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x5302d0
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0x38]
push ecx
push eax
xor edi, edi
call edx
test eax, eax
js 0x5302c4
cmp dword [esp + 0x14], ebx
je 0x5302b8
cmp edi, ebx
je 0x530119
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0xc8], ebx
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.00531e10
test eax, eax
js 0x53026c
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x53026c
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [esp + 0x10]
push eax
lea edi, [esp + 0x4c]
call fcn.004748c0
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
mov byte [esp + 0xc8], 1
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x80]
call fcn.00531be0
mov edx, dword [esp + 0x24]
push edx
lea eax, [esp + 0xa0]
push eax
call fcn.00531d30
mov ecx, edi
push ecx
push eax
lea edx, [esp + 0x74]
push edx
mov byte [esp + 0xdc], 2
call fcn.0040c4e0
add esp, 0x14
mov ecx, dword [esp + 0x20]
mov edx, eax
mov byte [esp + 0xc8], 3
call fcn.0040b670
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x88]
push ecx
mov ecx, eax
call fcn.00409870
mov edi, 0x10
mov byte [esp + 0xc8], 2
cmp dword [esp + 0x78], edi
jb 0x53021b
mov edx, dword [esp + 0x64]
push edx
call fcn.00548a36
add esp, 4
mov byte [esp + 0xc8], 1
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
cmp dword [esp + 0xb0], edi
jb 0x53024c
mov eax, dword [esp + 0x9c]
push eax
call fcn.00548a36
add esp, 4
mov byte [esp + 0xc8], bl
cmp dword [esp + 0x94], edi
jb 0x53026c
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00548a36
add esp, 4
mov edi, dword [esp + 0x14]
mov dword [esp + 0xc8], 0xffffffff
cmp dword [esp + 0x5c], 0x10
jb 0x53028f
mov edx, dword [esp + 0x48]
push edx
call fcn.00548a36
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x38]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call eax
test eax, eax
jns 0x530103
cmp edi, ebx
je 0x5302c4
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push 0x30
mov dword [esp + 0x38], ebx
call fcn.00548a50
add esp, 4
cmp eax, ebx
je 0x53065a
mov dword [esp + 0x30], eax
mov dword [eax], eax
mov eax, dword [esp + 0x30]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x30]
mov dword [eax + 8], eax
mov eax, dword [esp + 0x30]
mov byte [eax + 0x2c], 1
mov ecx, dword [esp + 0x30]
mov byte [ecx + 0x2d], 1
mov dword [esp + 0xc8], 5
mov edx, dword [esi]
mov ecx, dword [edx + 0x34]
lea eax, [esp + 0x18]
push eax
push esi
mov dword [esp + 0x20], ebx
call ecx
cmp eax, ebx
mov eax, dword [esp + 0x18]
jl 0x5305f2
cmp eax, ebx
je 0x5305fe
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
lea ecx, [esp + 0x3c]
push ecx
push eax
call edx
test eax, eax
js 0x5305bf
cmp dword [esp + 0x3c], 1
jne 0x5305bf
mov esi, 0xf
mov dword [esp + 0x94], esi
mov byte [esp + 0xc8], 6
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
call fcn.00531e10
test eax, eax
js 0x5303c1
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x5303c1
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [esp + 0x10]
push eax
lea edi, [esp + 0x84]
call fcn.004748c0
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0x78], esi
mov byte [esp + 0xc8], 7
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
call fcn.00531e00
test eax, eax
js 0x530417
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x530417
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [esp + 0x10]
push eax
lea edi, [esp + 0x68]
call fcn.004748c0
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0xffffffffffffffff
mov dword [esp + 0x60], esi
mov esi, dword [esp + 0x28]
push ebx
push esi
lea ecx, [esp + 0x54]
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
call fcn.00409870
mov byte [esp + 0xc8], 8
cmp dword [esi + 0x10], ebx
je 0x53044e
push 0x2f
push 1
lea ecx, [esp + 0x50]
call fcn.004097c0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x54]
call fcn.004077b0
mov ecx, dword [esp + 0x20]
mov edi, dword [ecx + 4]
lea edx, [esp + 0x48]
push edx
mov esi, ecx
call fcn.00459170
mov dword [esp + 0x10], eax
cmp eax, dword [esi + 4]
je 0x5304a7
mov ecx, dword [eax + 0x1c]
add eax, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x53048c
mov eax, dword [eax]
push ecx
push eax
mov eax, dword [esp + 0x60]
push eax
push ebx
lea ecx, [esp + 0x58]
call fcn.0040bb10
test eax, eax
js 0x5304a7
lea eax, [esp + 0x10]
jmp 0x5304b2
mov ecx, dword [esi + 4]
mov dword [esp + 0x28], ecx
lea eax, [esp + 0x28]
cmp dword [eax], edi
lea ecx, [esp + 0x80]
lea edi, [esp + 0x2c]
je 0x53050d
call fcn.0047c310
inc dword [eax]
mov eax, dword [eax]
push eax
push str.__d_
lea edx, [esp + 0xa4]
push 0x14
push edx
call fcn.0054adee
lea eax, [esp + 0xac]
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5304f0
sub eax, edx
push eax
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x50]
call fcn.004078a0
jmp 0x530518
call fcn.0047c310
mov dword [eax], 1
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
call fcn.0040b7e0
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x6c]
push edx
mov ecx, eax
call fcn.00409870
mov ecx, dword [esp + 0x18]
push esi
lea eax, [esp + 0x4c]
push eax
push ecx
call fcn.00530070
mov esi, 0x10
add esp, 0xc
mov byte [esp + 0xc8], 7
cmp dword [esp + 0x5c], esi
jb 0x530566
mov edx, dword [esp + 0x48]
push edx
call fcn.00548a36
add esp, 4
mov edi, 0xf
mov byte [esp + 0xc8], 6
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
cmp dword [esp + 0x78], esi
jb 0x530592
mov eax, dword [esp + 0x64]
push eax
call fcn.00548a36
add esp, 4
mov byte [esp + 0xc8], 5
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
cmp dword [esp + 0x94], esi
jb 0x5305bf
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00548a36
add esp, 4
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0x40]
push ecx
push eax
call edx
mov edi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
cmp edi, ebx
jge 0x530332
cmp eax, ebx
je 0x5305fe
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xc8], 9
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x30]
lea esi, [esp + 0x34]
call fcn.0047c8a0
mov dword [esp + 0xc8], 0xffffffff
mov eax, dword [esp + 0x30]
push eax
call fcn.00548a36
add esp, 4
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.00548a41
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], vtable.stdext::bad_alloc.0
lea ecx, [esp + 0x40]
mov dword [esp + 0xc8], 4
call fcn.00404df0
int3