Function at 0x1003997e
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 0x100399b6
push dword [ebx + 0x2c]
call fcn.100394c8
add esp, 4
test eax, eax
je 0x100399ad
mov eax, dword [eax + 0x14]
mov ebp, dword [eax]
mov dword [esp + 0x18], ebp
jmp 0x100399e6
mov edi, 0x1008a1a4
mov dword [esp + 0x20], edi
mov ebp, ecx
mov dword [esp + 0x18], ebp
test edi, edi
je 0x100399e6
push 0x20
pop esi
cmp dword [edi + 0x10], ecx
je 0x100399d3
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 0x100399e3
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 0x10039aa4
push dword [ebx + 0x2c]
call fcn.100394c8
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], eax
push ecx
call sym.glib_lite.dll_Ordinal_195
mov edx, eax
pop ecx
pop ecx
test edx, edx
je 0x10039c23
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 0x10039a7d
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 0x10039a95
movzx eax, word [ecx + 0x1a]
mov word [edx + 0x28], ax
mov eax, dword [ecx + 0x1c]
mov dword [edx + 0x2c], eax
jmp 0x10039b94
test eax, 0x20000
je 0x10039b1a
push dword [ebx + 0x2c]
call fcn.100394c8
lea ecx, [esi + 0x24]
mov dword [esp + 0x14], eax
push ecx
call sym.glib_lite.dll_Ordinal_195
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 0x10039b15
mov eax, dword [eax + 0x14]
mov ax, word [eax + 6]
mov word [edx + 6], ax
mov dword [edx + 8], ecx
jmp 0x10039b94
movzx eax, al
mov eax, dword [ebx + eax*4 + 0x28]
cmp eax, 8
jne 0x10039b64
lea eax, [esi + 0x20]
push eax
call sym.glib_lite.dll_Ordinal_195
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 0x10039b78
cmp eax, 0x48
jne 0x10039b81
lea eax, [esi + 0xc]
push eax
call sym.glib_lite.dll_Ordinal_195
mov edx, eax
pop ecx
lea ebp, [edx + 0xc]
test esi, esi
cmove ebp, dword [esp + 0x18]
jmp 0x10039b94
lea eax, [esi + 4]
push eax
call sym.glib_lite.dll_Ordinal_195
mov edx, eax
pop ecx
test esi, esi
je 0x10039b94
lea ebp, [edx + 4]
mov dword [ebx + 0x14], edx
test esi, esi
je 0x10039be5
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 0x10039bcd
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 0x10039be5
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 0x10039c0c
push dword [0x1008f94c]
push ebx
call fcn.10039e1b
pop ecx
pop ecx
test al, 0x30
jne 0x10039c0c
mov esi, 0x80000
mov eax, dword [ebx + 0xc]
and eax, 0xfff7ffff
or eax, esi
push 1
push ebx
mov dword [ebx + 0xc], eax
call sym.glib_lite.dll_Ordinal_350
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret