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

Disassembly:
push 0xffffffffffffffff
push 0x10044c78
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006c318]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, dword [esp + 0x80]
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_3927]
test al, al
jne 0x1002a72d
xor ebx, ebx
push ebx
call fcn.1002bf00
add esp, 4
push ebx
push 1
mov ebp, eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x24]
push edi
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
call edx
mov ecx, 0x1006d138
mov dword [esp + 0x78], ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_1472]
test eax, eax
jne 0x1002a6b9
push 0x2e
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_5524]
push eax
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_3990]
mov ecx, dword [esp + 0x88]
mov esi, dword [esp + 0x84]
push ecx
push esi
push eax
mov byte [esp + 0x84], 1
call fcn.1002a530
add esp, 0xc
lea ecx, [esp + 0x18]
mov ebp, eax
mov byte [esp + 0x78], bl
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
cmp ebp, ebx
je 0x1002a723
mov edx, dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, dword [sym.imp.MFC80U.DLL_Ordinal_293]
push edx
push eax
push 2
push 4
lea ecx, [esp + 0x28]
push ecx
call fcn.1003ec0c
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x1c]
push eax
push edi
mov byte [esp + 0x84], 2
call fcn.1002a470
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.1002a340
add esp, 0x18
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 3
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ebx
call fcn.10039530
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 4]
mov edx, dword [eax + 8]
sub edx, dword [eax]
mov dword [esi + 4], ecx
lea ecx, [esp + 0x20]
mov dword [esi], edx
mov byte [esp + 0x78], 2
call fcn.10029220
mov eax, dword [sym.imp.MFC80U.DLL_Ordinal_577]
push eax
push 2
push 4
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x88], bl
call fcn.1003eba9
jmp 0x1002a818
lea ecx, [esp + 0x5c]
call sub.MFC80U.DLL_Ordinal_557
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x18]
push 0x2c
push eax
mov byte [esp + 0x84], 4
call fcn.1002a0b0
add esp, 0xc
cmp eax, 2
je 0x1002a743
push str.Format_Error
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov edx, dword [ebp]
mov edx, dword [edx + 0x3c]
lea eax, [esp + 0x18]
push eax
push 1
push edi
mov ecx, ebp
mov byte [esp + 0x84], 5
call edx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x78], bl
call sub.MFC80U.DLL_Ordinal_745
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
xor esi, esi
cmp esi, ebx
jl 0x1002a777
cmp esi, dword [esp + 0x64]
jge 0x1002a777
mov eax, dword [esp + 0x60]
lea ecx, [eax + esi*4]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call fcn.10028c60
add esp, 4
test eax, eax
je 0x1002a77c
add esi, 1
cmp esi, 2
jl 0x1002a745
cmp dword [esp + 0x64], ebx
jg 0x1002a7b7
jmp fcn.1003e23c
cmp esi, dword [esp + 0x64]
jge 0x1002a777
mov ecx, dword [esp + 0x60]
lea eax, [ecx + esi*4]
push str._:_Format_Error
push eax
lea edx, [esp + 0x20]
push edx
call fcn.10004c10
add esp, 0xc
mov edx, dword [ebp]
push eax
mov eax, dword [edx + 0x3c]
push 1
push edi
mov ecx, ebp
mov byte [esp + 0x84], 6
call eax
jmp 0x1002a70c
mov ecx, dword [esp + 0x60]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
mov edi, dword [sym.imp.MSVCR80.dll__wtoi]
push eax
call edi
mov esi, dword [esp + 0x88]
add esp, 4
cmp dword [esp + 0x64], 1
mov dword [esi], eax
jg 0x1002a7e2
jmp fcn.1003e23c
mov ecx, dword [esp + 0x60]
add ecx, 4
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call edi
mov ecx, dword [esp + 0x8c]
mov dword [esi + 4], eax
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
sub dword [esi], edx
sub eax, ecx
add esp, 4
lea ecx, [esp + 0x5c]
mov dword [esi + 4], eax
mov byte [esp + 0x78], bl
call sub.MFC80U.DLL_Ordinal_745
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret