Function at 0x1002f12d
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
xor ecx, ecx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
mov esi, ecx
test edi, edi
jne 0x1002f165
push dword [ebx + 0x2c]
call fcn.1002ec77
add esp, 4
test eax, eax
je 0x1002f15c
mov eax, dword [eax + 0x14]
mov ebp, dword [eax]
mov dword [esp + 0x18], ebp
jmp 0x1002f195
mov edi, 0x1007e174
mov dword [esp + 0x20], edi
mov ebp, ecx
mov dword [esp + 0x18], ebp
test edi, edi
je 0x1002f195
push 0x20
pop esi
cmp dword [edi + 0x10], ecx
je 0x1002f182
push dword [edi + 0x10]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
add esi, eax
cmp dword [edi + 0x18], ebp
je 0x1002f192
push dword [edi + 0x18]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
add esi, eax
add esi, 2
mov eax, dword [ebx + 0xc]
test eax, 0x40000
je 0x1002f253
push dword [ebx + 0x2c]
call fcn.1002ec77
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], eax
push ecx
call sym.glib_lite.dll_Ordinal_199
mov edx, eax
pop ecx
pop ecx
test edx, edx
je 0x1002f3d2
mov ecx, dword [esp + 0x1c]
lea ebp, [edx + 0x30]
test esi, esi
cmove ebp, dword [esp + 0x18]
mov cx, word [ecx]
mov word [edx + 4], cx
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
mov dword [edx + 0xc], eax
mov eax, dword [ecx + 8]
mov dword [edx + 0x10], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0x14], eax
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x18], eax
mov eax, dword [ecx + 0x14]
xor ecx, ecx
mov dword [edx + 0x1c], eax
mov dword [edx + 0x20], ecx
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x1c]
mov ax, word [ecx + 0x18]
mov word [edx + 0x24], ax
xor eax, eax
mov word [edx + 0x26], ax
mov word [edx + 6], ax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1002f22c
mov eax, dword [eax + 0x14]
mov ax, word [eax + 6]
mov word [edx + 6], ax
movzx eax, word [ecx + 0x1a]
mov dword [esp + 0x18], eax
mov eax, 0x400
cmp word [esp + 0x18], ax
jae 0x1002f244
movzx eax, word [ecx + 0x1a]
mov word [edx + 0x28], ax
mov eax, dword [ecx + 0x1c]
mov dword [edx + 0x2c], eax
jmp 0x1002f343
test eax, 0x20000
je 0x1002f2c9
push dword [ebx + 0x2c]
call fcn.1002ec77
lea ecx, [esi + 0x24]
mov dword [esp + 0x14], eax
push ecx
call sym.glib_lite.dll_Ordinal_199
mov edx, eax
test esi, esi
pop ecx
pop ecx
mov ecx, dword [esp + 0x1c]
lea ebp, [edx + 0x24]
cmove ebp, dword [esp + 0x18]
mov ax, word [ecx]
mov word [edx + 4], ax
mov eax, dword [ecx + 4]
mov dword [edx + 0xc], eax
mov eax, dword [ecx + 8]
mov dword [edx + 0x10], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0x14], eax
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x18], eax
mov eax, dword [ecx + 0x14]
xor ecx, ecx
mov dword [edx + 0x1c], eax
xor eax, eax
mov word [edx + 6], ax
mov eax, dword [esp + 0x10]
mov dword [edx + 0x20], ecx
test eax, eax
je 0x1002f2c4
mov eax, dword [eax + 0x14]
mov ax, word [eax + 6]
mov word [edx + 6], ax
mov dword [edx + 8], ecx
jmp 0x1002f343
movzx eax, al
mov eax, dword [ebx + eax*4 + 0x28]
cmp eax, 8
jne 0x1002f313
lea eax, [esi + 0x20]
push eax
call sym.glib_lite.dll_Ordinal_199
mov edx, eax
pop ecx
mov ecx, dword [esp + 0x1c]
lea ebp, [edx + 0x20]
mov ax, word [ecx]
mov word [edx + 4], ax
mov eax, dword [ecx + 4]
mov dword [edx + 8], eax
mov eax, dword [ecx + 8]
mov dword [edx + 0xc], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0x10], eax
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x14], eax
mov eax, dword [ecx + 0x14]
and dword [edx + 0x1c], 0
mov dword [edx + 0x18], eax
jmp 0x1002f327
cmp eax, 0x48
jne 0x1002f330
lea eax, [esi + 0xc]
push eax
call sym.glib_lite.dll_Ordinal_199
mov edx, eax
pop ecx
lea ebp, [edx + 0xc]
test esi, esi
cmove ebp, dword [esp + 0x18]
jmp 0x1002f343
lea eax, [esi + 4]
push eax
call sym.glib_lite.dll_Ordinal_199
mov edx, eax
pop ecx
test esi, esi
je 0x1002f343
lea ebp, [edx + 4]
mov dword [ebx + 0x14], edx
test esi, esi
je 0x1002f394
mov esi, edi
mov edi, ebp
push 8
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x20]
lea esi, [ebp + 0x20]
mov byte [esi], 0
mov dword [ebp + 0x10], esi
cmp dword [edi + 0x10], 0
je 0x1002f37c
push dword [edi + 0x10]
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
push dword [edi + 0x10]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 0xc
add esi, eax
inc esi
mov byte [esi], 0
mov dword [ebp + 0x18], esi
cmp dword [edi + 0x18], 0
je 0x1002f394
push dword [edi + 0x18]
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
pop ecx
pop ecx
mov eax, dword [ebx + 0x14]
xor esi, esi
mov dword [eax], ebp
mov eax, dword [ebx + 0x14]
mov eax, dword [eax]
cmp dword [eax], esi
je 0x1002f3bb
push dword [0x10083944]
push ebx
call fcn.1002f5ca
pop ecx
pop ecx
test al, 0x30
jne 0x1002f3bb
mov esi, 0x80000
mov eax, dword [ebx + 0xc]
and eax, 0xfff7ffff
or eax, esi
push 1
push ebx
mov dword [ebx + 0xc], eax
call fcn.100250d4
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret