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

Disassembly:
sub esp, 0x670
mov eax, dword [0x10178d58]
xor eax, esp
mov dword [esp + 0x66c], eax
push ebx
push ebp
push esi
push edi
push 2
call fcn.100c1970
xor ebp, ebp
add esp, 4
cmp eax, ebp
je 0x10055772
lea edx, [esp + 0x1b4]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x10055455
lea eax, [esp + 0x1b4]
push str.projcs
push eax
call fcn.100d7640
lea ecx, [esp + 0x1bc]
push 0x100dc748
push ecx
call dword [sym.imp.MSVCR80.dll_fopen]
add esp, 0x10
cmp eax, ebp
mov dword [esp + 0x2c], eax
je 0x10055772
push eax
lea edx, [esp + 0x280]
push 0x3ff
push edx
mov byte [esp + 0x1f], 0
call dword [sym.imp.MSVCR80.dll_fgets]
add esp, 0xc
test eax, eax
je 0x100556e7
lea esp, [esp]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x280]
push 0x1014d0e8
push ecx
call fcn.100d4810
mov esi, eax
add esp, 0xc
cmp esi, ebp
je 0x10055536
mov eax, esi
mov dword [esp + ebp*4 + 0x74], esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100554f0
sub eax, edx
push str._t_r_n_b
push esi
mov edi, eax
call dword [sym.imp.MSVCR80.dll_strspn]
add esp, 8
cmp eax, edi
je 0x1005551c
push esi
call fcn.100d4990
add esp, 4
add ebp, 1
lea edx, [esp + 0x28]
push edx
push 0x1014d0e8
push 0
call fcn.100d4810
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100554e0
xor ebx, ebx
test ebp, ebp
jle 0x10055582
lea esp, [esp]
mov eax, dword [esp + ebx*4 + 0x74]
push eax
push str.PROJCS
call fcn.100d4740
add esp, 8
test eax, eax
je 0x1005555f
add ebx, 1
cmp ebx, ebp
jl 0x10055540
jmp 0x10055582
mov esi, dword [esp + ebx*4 + 0x78]
mov edi, dword [sym.imp.MSVCR80.dll_atoi]
push esi
call edi
add esp, 4
test eax, eax
jne 0x10055579
push esi
call sym.pe.dll_pe_factory_defstring_to_int
cmp eax, dword [esp + 0x684]
je 0x100555ac
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x280]
push 0x3ff
push edx
call dword [sym.imp.MSVCR80.dll_fgets]
add esp, 0xc
test eax, eax
je 0x100556e7
xor ebp, ebp
jmp 0x100554c0
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + ebx*4 + 0x7c]
lea edx, [esp + 0x174]
mov byte [esp + 0x13], 1
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x10055600
mov esi, dword [esp + ebx*4 + 0x80]
push esi
call edi
mov edi, dword [esp + ebx*4 + 0x88]
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCR80.dll_atoi]
add esp, 8
cmp dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
jne 0x10055640
push esi
call sym.pe.dll_pe_factory_defstring_to_int
mov dword [esp + 0x18], eax
cmp dword [esp + 0x1c], 0
jne 0x10055651
push edi
call sym.pe.dll_pe_factory_defstring_to_int
mov dword [esp + 0x1c], eax
mov eax, ebp
sub eax, ebx
sub eax, 5
cdq
sub eax, edx
sar eax, 1
xor ecx, ecx
add eax, 1
cmp eax, ecx
mov dword [esp + 0x14], ecx
jle 0x100556e7
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x14]
lea ebp, [eax + ebx + 5]
mov esi, dword [esp + ebp*4 + 0x74]
push esi
call dword [sym.imp.MSVCR80.dll_atoi]
mov edi, eax
add esp, 4
test edi, edi
jne 0x1005569a
push esi
call sym.pe.dll_pe_factory_defstring_to_int
mov edi, eax
lea eax, [edi - 0x186a1]
cmp eax, 0x26
ja case.0x100556b0.100006
movzx ecx, byte [eax + 0x100558cc]
jmp dword [ecx*4 + 0x10055888]
xor eax, eax
push edi
lea esi, [esp + eax*4 + 0x38]
call sym.pe.dll_pe_factory_parameter
mov edx, dword [esp + ebp*4 + 0x78]
push edx
mov dword [esi], eax
call fcn.100d7960
mov eax, dword [esi]
push ecx
fstp qword [esp]
push eax
call sym.pe.dll_pe_parameter_value_set
add dword [esp + 0x20], 2
sub dword [esp + 0x30], 1
jne 0x10055672
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
cmp byte [esp + 0x13], 0
je 0x10055772
mov edx, dword [esp + 0x18]
push edx
call sym.pe.dll_pe_factory_geogcs
mov edi, eax
mov eax, dword [esp + 0x1c]
push eax
call sym.pe.dll_pe_factory_projection
mov ecx, dword [esp + 0x24]
push ecx
mov esi, eax
call sym.pe.dll_pe_factory_unit
test esi, esi
mov ebx, eax
je 0x10055745
test edi, edi
je 0x10055745
test ebx, ebx
je 0x10055745
push ebx
lea edx, [esp + 0x38]
push edx
push esi
push edi
lea eax, [esp + 0x184]
push eax
call sym.pe.dll_pe_projcs_new
test eax, eax
jne 0x10055774
push edi
call sym.pe.dll_pe_geogcs_del
push esi
call sym.pe.dll_pe_projection_del
push ebx
call sym.pe.dll_pe_unit_del
xor esi, esi
lea esp, [esp]
mov ecx, dword [esp + esi*4 + 0x34]
push ecx
call sym.pe.dll_pe_parameter_del
add esi, 1
cmp esi, 0x10
jl 0x10055760
xor eax, eax
mov ecx, dword [esp + 0x67c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100db39a
add esp, 0x670
ret
mov eax, 1
jmp 0x100556b9
mov eax, 0xf
jmp 0x100556b9
mov eax, 2
jmp 0x100556b9
mov eax, 6
jmp 0x100556b9
mov eax, 3
jmp 0x100556b9
mov eax, 4
jmp 0x100556b9
mov eax, 8
jmp 0x100556b9
mov eax, 9
jmp 0x100556b9
mov eax, 0xa
jmp 0x100556b9
mov eax, 0xb
jmp 0x100556b9
mov eax, 5
jmp 0x100556b9
mov eax, 7
jmp 0x100556b9
mov eax, 0xc
jmp 0x100556b9
mov eax, 0xd
jmp 0x100556b9
mov eax, 0xe
jmp 0x100556b9
call sym.pe.dll_pe_factory_coderanges_linear_unit
mov edx, dword [eax]
xor ecx, ecx
test edx, edx
jle 0x10055846
mov eax, dword [eax + 4]
cmp edi, dword [eax]
jl 0x1005583c
cmp edi, dword [eax + 4]
jle 0x10055878
add ecx, 1
add eax, 0x10
cmp ecx, edx
jl 0x10055833
call sym.pe.dll_pe_factory_coderanges_angular_unit
mov edx, dword [eax]
xor ecx, ecx
test edx, edx
jle 0x100556db
mov eax, dword [eax + 4]
lea ebx, [ebx]
cmp edi, dword [eax]
jl 0x10055869
cmp edi, dword [eax + 4]
jle 0x10055878
add ecx, 1
add eax, 0x10
cmp ecx, edx
jl 0x10055860
jmp 0x100556db
add dword [esp + 0x14], 1
mov dword [esp + 0x24], edi
jmp 0x100556db