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

Disassembly:
sub esp, 0x94
mov eax, dword [0x8bb040]
xor eax, esp
mov dword [esp + 0x8c], eax
cmp dword [esp + 0xa0], 4
mov eax, dword [esp + 0xa4]
push ebx
mov ebx, dword [esp + 0xb0]
push ebp
push esi
push edi
mov edi, dword [esp + 0xb8]
mov esi, ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], ebx
jge 0x731479
lea eax, [esp + 0x48]
push eax
call fcn.0072c6c0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x731483
mov ecx, edi
inc ebp
mov dword [esp + 0x34], ebp
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x731100
xor eax, eax
sub ecx, edx
mov edx, dword [esp + 0x10]
test edx, edx
setne al
add eax, ecx
mov dword [esp + 0x20], eax
add eax, 0xa
add eax, ebp
mov dword [esp + 0x24], eax
lea eax, [edx*4]
test esi, esi
jne 0x731136
xor eax, eax
mov dword [esp + 0x14], eax
jmp 0x73116a
test eax, eax
je 0x73146d
mov ecx, dword [esi + 0x260]
push eax
test ecx, ecx
je 0x731151
push esi
call ecx
add esp, 8
jmp 0x73115a
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x73146d
mov edx, dword [esp + 0x10]
xor edi, edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
cmp edx, 2
jl 0x7311fe
lea ecx, [edx - 1]
mov dword [esp + 0x18], ecx
lea ebp, [eax + 4]
mov ecx, ebx
sub ecx, eax
xor esi, esi
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebx + edi*4]
lea edx, [ecx + 1]
jmp 0x7311a0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x7311a0
sub ecx, edx
xor eax, eax
cmp edi, dword [esp + 0x18]
setne al
add eax, ecx
add dword [esp + 0x1c], eax
mov dword [ebp - 4], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + ebp]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x7311c5
sub edx, ecx
lea eax, [edi + 1]
xor ecx, ecx
cmp eax, dword [esp + 0x18]
setne cl
add edi, 2
lea eax, [ecx + edx]
mov dword [ebp], eax
add esi, eax
add ebp, 8
cmp edi, dword [esp + 0x18]
jl 0x731195
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x30]
cmp edi, edx
jge 0x73122f
mov edx, dword [ebx + edi*4]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x731208
mov eax, dword [esp + 0x10]
sub edx, ecx
xor ecx, ecx
dec eax
cmp edi, eax
setne cl
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
add edx, eax
mov dword [ecx + edi*4], eax
jmp 0x731233
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov ecx, esi
add eax, dword [esp + 0x1c]
add eax, edx
mov edx, 0x7043414c
push eax
call fcn.0072e490
add esp, 4
test esi, esi
je 0x73127b
test ebp, ebp
je 0x73127b
mov eax, dword [esi + 0x58]
test eax, eax
je 0x73148f
push ebp
lea ecx, [esp + 0x4c]
push ecx
push esi
call eax
add esp, 0xc
lea edx, [esp + 0x48]
mov ecx, esi
push ebp
call fcn.0071c1b0
add esp, 4
mov ecx, dword [esp + 0xa8]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x3c], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x3d], al
mov eax, ecx
shr eax, 8
mov byte [esp + 0x3e], al
mov byte [esp + 0x3f], cl
mov ecx, dword [esp + 0xac]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x40], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x41], al
mov eax, ecx
shr eax, 8
mov byte [esp + 0x42], al
mov eax, dword [esp + 0xb0]
mov byte [esp + 0x44], al
mov eax, dword [esp + 0x10]
mov byte [esp + 0x43], cl
mov byte [esp + 0x45], al
test esi, esi
je 0x731389
mov eax, dword [esi + 0x58]
test eax, eax
je 0x73148f
push 0xa
lea ecx, [esp + 0x40]
push ecx
push esi
call eax
mov eax, dword [esi + 0x78]
lea ebp, [esp + 0x48]
add esp, 0xc
mov edi, 0xa
test dword [esi + 0x11c], 0x20000000
je 0x731320
and eax, 0x300
cmp eax, 0x300
je 0x731355
jmp 0x731327
test eax, 0x800
jne 0x731355
mov eax, dword [esi + 0x138]
lea ecx, [ecx]
mov edx, ebp
mov ecx, eax
test edi, edi
jne 0x731346
push 0xffffffffffffffff
call fcn.007152e0
add esp, 4
dec ebp
inc edi
jmp 0x731330
push edi
call fcn.007152e0
add esp, 4
mov dword [esi + 0x138], eax
mov ebp, dword [esp + 0x38]
test ebp, ebp
je 0x731385
mov edi, dword [esp + 0x20]
test edi, edi
je 0x731385
mov eax, dword [esi + 0x58]
test eax, eax
je 0x73148f
push edi
push ebp
push esi
call eax
add esp, 0xc
mov edx, ebp
mov ecx, esi
push edi
call fcn.0071c1b0
add esp, 4
mov eax, dword [esp + 0x10]
xor ebp, ebp
test eax, eax
jle 0x7313e9
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
sub eax, ebx
mov dword [esp + 0x20], eax
lea ecx, [ecx]
mov edi, dword [eax + ebx]
mov ebx, dword [ebx]
test esi, esi
je 0x7313d9
test ebx, ebx
je 0x7313d9
test edi, edi
je 0x7313d9
mov eax, dword [esi + 0x58]
test eax, eax
je 0x73148f
push edi
push ebx
push esi
call eax
add esp, 0xc
mov edx, ebx
mov ecx, esi
push edi
call fcn.0071c1b0
mov eax, dword [esp + 0x24]
add esp, 4
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
inc ebp
add ebx, 4
mov dword [esp + 0x28], ebx
cmp ebp, ecx
jl 0x7313a0
test esi, esi
je 0x731454
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x731411
mov eax, dword [esi + 0x264]
push ecx
test eax, eax
je 0x731408
push esi
call eax
add esp, 8
jmp 0x731411
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [esi + 0x138]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x14], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x15], al
mov eax, ecx
shr eax, 8
mov byte [esp + 0x16], al
mov eax, dword [esi + 0x58]
mov dword [esi + 0x2b0], 0x82
mov byte [esp + 0x17], cl
test eax, eax
je 0x73148f
push 4
lea ecx, [esp + 0x18]
push ecx
push esi
call eax
add esp, 0xc
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0073297b
add esp, 0x94
ret
mov edx, str.Out_of_memory
mov ecx, esi
call fcn.0071f650
mov edx, str.Unrecognized_equation_type_for_pCAL_chunk
call fcn.0071f650
mov edx, str.pCAL:_invalid_keyword
mov ecx, esi
call fcn.0071f650
mov edx, str.Call_to_NULL_write_function
mov ecx, esi
call fcn.0071f650
int3