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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov dword [ebp - 0xc], 0
push 0xc4
push 1
call dword [sym.imp.MSVCR80.dll_calloc]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x513626
mov dword [ebp - 4], 0
jmp 0x512e8d
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jge 0x51360d
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc0]
mov dword [ecx + 0xc0], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 0
je 0x512f17
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.MSVCR80.dll__strdup]
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x14], 0
jne 0x512f17
mov dword [ebp - 0xc], 1
jmp 0x51360d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
je 0x512f4b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.MSVCR80.dll__strdup]
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x18], 0
jne 0x512f4b
mov dword [ebp - 0xc], 1
jmp 0x51360d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0
je 0x512f7f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.MSVCR80.dll__strdup]
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x1c], 0
jne 0x512f7f
mov dword [ebp - 0xc], 1
jmp 0x51360d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x512fb3
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.MSVCR80.dll__strdup]
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x20], 0
jne 0x512fb3
mov dword [ebp - 0xc], 1
jmp 0x51360d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 0
je 0x512fe7
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.MSVCR80.dll__strdup]
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x24], 0
jne 0x512fe7
mov dword [ebp - 0xc], 1
jmp 0x51360d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x28], 0
je 0x51301b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.MSVCR80.dll__strdup]
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x28], 0
jne 0x51301b
mov dword [ebp - 0xc], 1
jmp 0x51360d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x30]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x38]
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x40]
mov dword [eax + 0x40], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x44]
mov dword [eax + 0x44], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x48]
mov dword [eax + 0x48], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x4c]
mov dword [eax + 0x4c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x50]
mov dword [eax + 0x50], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x54]
mov dword [eax + 0x54], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x58]
mov dword [eax + 0x58], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5c]
mov dword [eax + 0x5c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov dword [eax + 0x60], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x64]
mov dword [eax + 0x64], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x68]
mov dword [eax + 0x68], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6c]
mov dword [eax + 0x6c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x70]
mov dword [eax + 0x70], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x74]
mov dword [eax + 0x74], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x78]
mov dword [eax + 0x78], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x7c]
mov dword [eax + 0x7c], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0
je 0x513157
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x80]
push edx
call dword [sym.imp.MSVCR80.dll__strdup]
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x80], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x80], 0
jne 0x513157
mov dword [ebp - 0xc], 1
jmp 0x51360d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x84], 0
je 0x513197
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x84]
push edx
call dword [sym.imp.MSVCR80.dll__strdup]
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x84], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x84], 0
jne 0x513197
mov dword [ebp - 0xc], 1
jmp 0x51360d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x88], 0
je 0x5131d7
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x88]
push edx
call dword [sym.imp.MSVCR80.dll__strdup]
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x88], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x88], 0
jne 0x5131d7
mov dword [ebp - 0xc], 1
jmp 0x51360d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x8c], 0
je 0x513217
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x8c]
push edx
call dword [sym.imp.MSVCR80.dll__strdup]
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x8c], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x8c], 0
jne 0x513217
mov dword [ebp - 0xc], 1
jmp 0x51360d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x90]
mov dword [eax + 0x90], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x94]
mov dword [eax + 0x94], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x98], 0
je 0x51327b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x98]
push edx
call dword [sym.imp.MSVCR80.dll__strdup]
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x98], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x98], 0
jne 0x51327b
mov dword [ebp - 0xc], 1
jmp 0x51360d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x9c]
mov dword [eax + 0x9c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa0]
mov dword [eax + 0xa0], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 0xa4], 0
je 0x51359c
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xa0]
imul edx, edx, 0x30
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xa4], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0xa4], 0
jne 0x5132ec
mov dword [ebp - 0xc], 1
jmp 0x51360d
mov dword [ebp - 0x10], 0
jmp 0x5132fe
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
cmp edx, dword [ecx + 0xa0]
jge 0x51359c
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x30
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa4]
cmp dword [eax + edx], 0
je 0x513374
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x30
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa4]
mov eax, dword [edx + eax]
push eax
call dword [sym.imp.MSVCR80.dll__strdup]
add esp, 4
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x30
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0xa4]
mov dword [ecx + edx], eax
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x30
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xa4]
cmp dword [eax + edx], 0
jne 0x513374
mov dword [ebp - 0xc], 1
jmp 0x51359c
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x30
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa4]
cmp dword [edx + eax + 4], 0
je 0x5133dc
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x30
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa4]
mov eax, dword [edx + eax + 4]
push eax
call dword [sym.imp.MSVCR80.dll__strdup]
add esp, 4
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x30
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0xa4]
mov dword [edx + ecx + 4], eax
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x30
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xa4]
cmp dword [edx + eax + 4], 0
jne 0x5133dc
mov dword [ebp - 0xc], 1
jmp 0x51359c
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x30
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa4]
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x30
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0xa4]
mov edx, dword [edx + eax + 8]
mov dword [esi + ecx + 8], edx
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x30
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa4]
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x30
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0xa4]
mov edx, dword [edx + eax + 0xc]
mov dword [esi + ecx + 0xc], edx
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x30
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa4]
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x30
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0xa4]
mov edx, dword [edx + eax + 0x10]
mov dword [esi + ecx + 0x10], edx
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x30
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa4]
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x30
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0xa4]
mov edx, dword [edx + eax + 0x14]
mov dword [esi + ecx + 0x14], edx
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x30
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa4]
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x30
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0xa4]
mov edx, dword [edx + eax + 0x18]
mov dword [esi + ecx + 0x18], edx
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x30
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa4]
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x30
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0xa4]
mov edx, dword [edx + eax + 0x1c]
mov dword [esi + ecx + 0x1c], edx
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x30
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa4]
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x30
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0xa4]
mov edx, dword [edx + eax + 0x20]
mov dword [esi + ecx + 0x20], edx
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x30
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa4]
cmp dword [edx + eax + 0x24], 0
je 0x51354b
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x30
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa4]
mov eax, dword [edx + eax + 0x24]
push eax
call dword [sym.imp.MSVCR80.dll__strdup]
add esp, 4
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x30
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0xa4]
mov dword [edx + ecx + 0x24], eax
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x30
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xa4]
cmp dword [edx + eax + 0x24], 0
jne 0x51354b
mov dword [ebp - 0xc], 1
jmp 0x51359c
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x30
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa4]
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x30
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0xa4]
mov edx, dword [edx + eax + 0x28]
mov dword [esi + ecx + 0x28], edx
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x30
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa4]
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x30
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0xa4]
mov edx, dword [edx + eax + 0x2c]
mov dword [esi + ecx + 0x2c], edx
jmp 0x5132f5
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa8]
mov dword [eax + 0xa8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xac]
mov dword [eax + 0xac], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xb0]
mov dword [eax + 0xb0], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xb4]
mov dword [eax + 0xb4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xb8]
mov dword [eax + 0xb8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xbc]
mov dword [eax + 0xbc], edx
jmp 0x512e84
cmp dword [ebp - 0xc], 0
je 0x513626
mov eax, dword [ebp - 8]
push eax
call fcn.00512bd0
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret