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

Disassembly:
sub esp, 0x6b4
mov eax, dword [0x10178d58]
xor eax, esp
mov dword [esp + 0x6b0], eax
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0x80
xor ebp, ebp
mov dword [esp + 0x78], esi
call fcn.100c1970
add esp, 4
cmp eax, ebp
je 0x100530ea
lea edx, [esp + 0x1f8]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], ebp
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x10052ad0
lea eax, [esp + 0x1f8]
push str.geogtran
push eax
call fcn.100d7640
lea ecx, [esp + 0x200]
push 0x100dc748
push ecx
call dword [sym.imp.MSVCR80.dll_fopen]
add esp, 0x10
cmp eax, ebp
mov dword [esp + 0x2c], eax
je 0x100530ea
push eax
lea edx, [esp + 0x2c4]
push 0x3ff
push edx
mov byte [esp + 0x1f], 0
call dword [sym.imp.MSVCR80.dll_fgets]
add esp, 0xc
test eax, eax
je case.0x10052d1e.9608
mov ebx, dword [sym.imp.MSVCR80.dll_strspn]
lea ebx, [ebx]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x2c4]
push 0x1014d0e8
push ecx
call fcn.100d4810
mov esi, eax
add esp, 0xc
cmp esi, ebp
je 0x10052bb2
mov eax, esi
mov dword [esp + ebp*4 + 0x78], esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10052b70
sub eax, edx
push str._t_r_n_b
push esi
mov edi, eax
call ebx
add esp, 8
cmp eax, edi
je 0x10052b98
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 0x10052b60
xor esi, esi
test ebp, ebp
jle 0x10052c00
jmp 0x10052bc0
mov eax, dword [esp + esi*4 + 0x78]
push eax
push str.GEOGTRAN
call fcn.100d4740
add esp, 8
test eax, eax
je 0x10052bdf
add esi, 1
cmp esi, ebp
jl 0x10052bc0
jmp 0x10052c00
mov edi, dword [esp + esi*4 + 0x7c]
push edi
call dword [sym.imp.MSVCR80.dll_atoi]
add esp, 4
test eax, eax
jne 0x10052bf7
push edi
call sym.pe.dll_pe_factory_defstring_to_int
cmp eax, dword [esp + 0x6c8]
je 0x10052c2a
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c4]
push 0x3ff
push edx
call dword [sym.imp.MSVCR80.dll_fgets]
add esp, 0xc
test eax, eax
je case.0x10052d1e.9608
xor ebp, ebp
jmp 0x10052b40
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 + esi*4 + 0x80]
lea edx, [esp + 0x178]
mov byte [esp + 0x13], 1
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x10052c81
mov edi, dword [esp + esi*4 + 0x84]
mov ebx, dword [sym.imp.MSVCR80.dll_atoi]
push edi
call ebx
mov ebp, dword [esp + esi*4 + 0x8c]
push ebp
mov dword [esp + 0x20], eax
call ebx
mov ebx, dword [esp + esi*4 + 0x94]
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.MSVCR80.dll_atoi]
add esp, 0xc
cmp dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
jne 0x10052cd5
push edi
call sym.pe.dll_pe_factory_defstring_to_int
mov dword [esp + 0x18], eax
cmp dword [esp + 0x1c], 0
jne 0x10052ce6
push ebp
call sym.pe.dll_pe_factory_defstring_to_int
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x10052cf8
push ebx
call sym.pe.dll_pe_factory_defstring_to_int
mov dword [esp + 0x14], eax
cmp eax, 0x258f
jg 0x10052d9b
je case.0x10052d1e.9613
add eax, 0xffffda7d
cmp eax, 0xa
ja case.0x10052d1e.9608
movzx eax, byte [eax + 0x10053118]
jmp dword [eax*4 + 0x10053108]
mov ebx, dword [sym.imp.MSVCR80.dll_atoi]
lea edi, [esp + esi*4 + 0x90]
mov ebp, 3
mov esi, dword [edi]
push esi
call ebx
add esp, 4
test eax, eax
jne 0x10052d49
push esi
call sym.pe.dll_pe_factory_defstring_to_int
mov ecx, eax
sub ecx, 0x186c8
je 0x10052d6b
sub ecx, 1
je 0x10052d64
sub ecx, 1
jne 0x10052d8e
mov ecx, 2
jmp 0x10052d6d
mov ecx, 1
jmp 0x10052d6d
xor ecx, ecx
push eax
lea esi, [esp + ecx*4 + 0x38]
call sym.pe.dll_pe_factory_parameter
mov ecx, dword [edi + 4]
push ecx
mov dword [esi], eax
call fcn.100d7960
mov edx, dword [esi]
push ecx
fstp qword [esp]
push edx
call sym.pe.dll_pe_parameter_value_set
add edi, 8
sub ebp, 1
jne 0x10052d37
jmp case.0x10052d1e.9608
sub eax, 0x25a4
je 0x10052ea5
sub eax, 0x18683
je case.0x10052d1e.9606
sub eax, 6
jne case.0x10052d1e.9608
mov edi, dword [esp + esi*4 + 0x90]
push edi
call dword [sym.imp.MSVCR80.dll_atoi]
add esp, 4
test eax, eax
jne 0x10052dd1
push edi
call sym.pe.dll_pe_factory_defstring_to_int
cmp eax, 0x186cf
jne case.0x10052d1e.9608
push eax
call sym.pe.dll_pe_factory_parameter
mov esi, dword [esp + esi*4 + 0x94]
lea edx, [esp + 0x1b8]
mov dword [esp + 0x70], eax
sub edx, esi
mov cl, byte [esi]
mov byte [esi + edx], cl
add esi, 1
test cl, cl
jne 0x10052df6
lea ecx, [esp + 0x1b8]
push ecx
push eax
call sym.pe.dll_pe_parameter_name_set
jmp case.0x10052d1e.9608
mov ebx, dword [sym.imp.MSVCR80.dll_atoi]
lea edi, [esp + esi*4 + 0x90]
mov ebp, 7
mov esi, dword [edi]
push esi
call ebx
add esp, 4
test eax, eax
jne 0x10052e39
push esi
call sym.pe.dll_pe_factory_defstring_to_int
lea ecx, [eax - 0x186c8]
cmp ecx, 6
ja case.default.0x10052e44
jmp dword [ecx*4 + 0x10053124]
xor ecx, ecx
jmp 0x10052e77
mov ecx, 1
jmp 0x10052e77
mov ecx, 2
jmp 0x10052e77
mov ecx, 3
jmp 0x10052e77
mov ecx, 4
jmp 0x10052e77
mov ecx, 5
jmp 0x10052e77
mov ecx, 6
push eax
lea esi, [esp + ecx*4 + 0x38]
call sym.pe.dll_pe_factory_parameter
mov edx, dword [edi + 4]
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 edi, 8
sub ebp, 1
jne 0x10052e27
jmp case.0x10052d1e.9608
mov ebx, dword [sym.imp.MSVCR80.dll_atoi]
lea edi, [esp + esi*4 + 0x90]
mov ebp, 0xa
mov esi, dword [edi]
push esi
call ebx
add esp, 4
test eax, eax
jne 0x10052ec9
push esi
call sym.pe.dll_pe_factory_defstring_to_int
lea ecx, [eax - 0x186c8]
cmp ecx, 0xa
ja case.0x10052ed4.100047
jmp dword [ecx*4 + 0x10053140]
xor ecx, ecx
jmp 0x10052f1c
mov ecx, 1
jmp 0x10052f1c
mov ecx, 2
jmp 0x10052f1c
mov ecx, 3
jmp 0x10052f1c
mov ecx, 4
jmp 0x10052f1c
mov ecx, 5
jmp 0x10052f1c
mov ecx, 6
jmp 0x10052f1c
mov ecx, 7
jmp 0x10052f1c
mov ecx, 8
jmp 0x10052f1c
mov ecx, 9
push eax
lea esi, [esp + ecx*4 + 0x38]
call sym.pe.dll_pe_factory_parameter
mov ecx, dword [edi + 4]
push ecx
mov dword [esi], eax
call fcn.100d7960
mov edx, dword [esi]
push ecx
fstp qword [esp]
push edx
call sym.pe.dll_pe_parameter_value_set
add edi, 8
sub ebp, 1
jne 0x10052eb7
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
cmp byte [esp + 0x13], 0
je 0x100530e6
mov esi, dword [esp + 0x14]
cmp esi, 0x258f
jg 0x10052fad
je case.0x10052f86.9613
lea eax, [esi - 0x2581]
cmp eax, 0xc
ja case.0x10052f86.9602
movzx ecx, byte [eax + 0x10053180]
jmp dword [ecx*4 + 0x1005316c]
cmp dword [esp + 0x34], 0
je case.0x10052f86.9602
cmp dword [esp + 0x38], 0
je case.0x10052f86.9602
cmp dword [esp + 0x3c], 0
jmp 0x10053069
mov eax, esi
sub eax, 0x25a4
je 0x10053019
sub eax, 0x18683
je case.0x10052f86.9606
sub eax, 6
jne case.0x10052f86.9602
cmp dword [esp + 0x70], 0
jmp 0x10053069
cmp dword [esp + 0x34], 0
je case.0x10052f86.9602
cmp dword [esp + 0x38], 0
je case.0x10052f86.9602
cmp dword [esp + 0x3c], 0
je case.0x10052f86.9602
cmp dword [esp + 0x40], 0
je case.0x10052f86.9602
cmp dword [esp + 0x44], 0
je case.0x10052f86.9602
cmp dword [esp + 0x48], 0
je case.0x10052f86.9602
cmp dword [esp + 0x4c], 0
jmp 0x10053069
cmp dword [esp + 0x34], 0
je case.0x10052f86.9602
cmp dword [esp + 0x38], 0
je case.0x10052f86.9602
cmp dword [esp + 0x3c], 0
je case.0x10052f86.9602
cmp dword [esp + 0x40], 0
je case.0x10052f86.9602
cmp dword [esp + 0x44], 0
je case.0x10052f86.9602
cmp dword [esp + 0x48], 0
je case.0x10052f86.9602
cmp dword [esp + 0x4c], 0
je case.0x10052f86.9602
cmp dword [esp + 0x50], 0
je case.0x10052f86.9602
cmp dword [esp + 0x54], 0
je case.0x10052f86.9602
cmp dword [esp + 0x58], 0
je case.0x10052f86.9602
mov edx, dword [esp + 0x18]
push edx
call sym.pe.dll_pe_factory_geogcs
mov edi, eax
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x28], edi
call sym.pe.dll_pe_factory_geogcs
mov ebx, eax
push esi
mov dword [esp + 0x24], ebx
call sym.pe.dll_pe_factory_method
lea ecx, [esp + 0x34]
push ecx
push eax
push ebx
push edi
lea edx, [esp + 0x188]
push edx
mov dword [esp + 0x44], eax
call sym.pe.dll_pe_geogtran_new
mov esi, eax
test esi, esi
jne 0x100530ea
mov eax, dword [esp + 0x24]
push eax
call sym.pe.dll_pe_geogcs_del
mov ecx, dword [esp + 0x20]
push ecx
call sym.pe.dll_pe_geogcs_del
mov edx, dword [esp + 0x30]
push edx
call sym.pe.dll_pe_method_del
xor esi, esi
mov eax, dword [esp + esi*4 + 0x34]
push eax
call sym.pe.dll_pe_parameter_del
add esi, 1
cmp esi, 0x10
jl 0x100530d0
xor eax, eax
jmp 0x100530ec
mov esi, dword [esp + 0x74]
mov eax, esi
mov ecx, dword [esp + 0x6c0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100db39a
add esp, 0x6b4
ret