Function at 0x10031481
Capabilities:
Enumerate pe sections

Disassembly:
push 0x164
mov eax, 0x1004b9f1
call fcn.1004a596
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x128], eax
mov eax, dword [0x10115084]
cmp dword [eax + 0xc], ecx
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x124], ecx
je 0x10031573
push dword [eax + 0x34]
mov dword [ebp - 0x118], eax
add eax, 0x18
push 0x10001520
mov dword [ebp - 0x120], eax
call fcn.1001c102
mov edi, dword [sym.imp.MSVCR100.dll_sprintf_s]
push eax
push 0x10114468
mov ebx, 0x100094b8
push ebx
push 0x20000
mov esi, 0x10058a80
push esi
call edi
add esp, 0x18
push esi
push dword [ebp - 0x128]
call fcn.10011965
mov eax, dword [ebp - 0x120]
movzx ecx, word [eax + 0x44]
push dword [eax + 0x24]
mov dword [ebp - 0x11c], ecx
push 0x100094a8
call fcn.1001c102
push eax
push 0x10114468
push ebx
push 0x20000
push esi
call edi
add esp, 0x18
push esi
push dword [ebp - 0x128]
call fcn.10011965
mov eax, dword [ebp - 0x120]
push dword [eax + 0x48]
push 0x10001510
call fcn.1001c102
push eax
push 0x10114468
push ebx
push 0x20000
push esi
call edi
add esp, 0x18
jmp 0x10031625
lea ebx, [eax + 0x18]
push dword [ebx + 0x1c]
mov dword [ebp - 0x130], eax
push dword [ebx + 0x18]
mov dword [ebp - 0x124], ebx
push 0x10001520
call fcn.1001c102
mov edi, dword [sym.imp.MSVCR100.dll_sprintf_s]
push eax
push 0x10114468
push 0x10009498
push 0x20000
mov esi, 0x10058a80
push esi
call edi
add esp, 0x1c
push esi
push dword [ebp - 0x128]
call fcn.10011965
movzx eax, word [ebx + 0x44]
push dword [ebx + 0x24]
mov dword [ebp - 0x11c], eax
push 0x100094a8
call fcn.1001c102
push eax
push 0x10114468
mov ebx, 0x100094b8
push ebx
push 0x20000
push esi
call edi
add esp, 0x18
push esi
push dword [ebp - 0x128]
call fcn.10011965
mov eax, dword [ebp - 0x124]
push dword [eax + 0x4c]
push dword [eax + 0x48]
push 0x10001510
call fcn.1001c102
push eax
push 0x10114468
push 0x10009498
push 0x20000
push esi
call edi
add esp, 0x1c
push esi
push dword [ebp - 0x128]
call fcn.10011965
push dword [ebp - 0x11c]
push 0x10001544
call fcn.1001c102
push eax
push 0x10114468
push 0x1000948c
push 0x20000
push esi
call edi
add eax, esi
mov ecx, 0x10009478
add esp, 0x18
cmp dword [ebp - 0x11c], 0xe
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x16c], 0x1000946c
mov dword [ebp - 0x168], 0x10009460
mov dword [ebp - 0x164], 0x10009450
mov dword [ebp - 0x160], 0x10009440
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x158], 0x10009434
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x150], 0x10009424
mov dword [ebp - 0x14c], 0x10009410
mov dword [ebp - 0x148], 0x100093fc
mov dword [ebp - 0x144], 0x100093e8
mov dword [ebp - 0x140], 0x100093cc
mov dword [ebp - 0x13c], 0x100093b4
mov dword [ebp - 0x138], 0x100093a8
mov dword [ebp - 0x134], 0x100093a0
jbe 0x10031705
mov dword [ebp - 0x11c], 4
mov ecx, 0x10078a80
cmp eax, ecx
jb 0x10031717
and dword [ebp - 0x12c], 0
jmp 0x1003171f
sub ecx, eax
mov dword [ebp - 0x12c], ecx
mov eax, dword [ebp - 0x11c]
push dword [ebp + eax*4 - 0x16c]
call fcn.1001c194
push eax
push 0x10009394
push dword [ebp - 0x12c]
push dword [ebp - 0x114]
call edi
add esp, 0x10
push esi
push dword [ebp - 0x128]
call fcn.10011965
mov eax, dword [0x1011609c]
mov eax, dword [eax + 0x10]
push eax
push 0x10001538
mov dword [ebp - 0x11c], eax
call fcn.1001c102
push eax
push 0x10114468
push ebx
push 0x20000
push esi
call edi
add esp, 0x18
cmp dword [ebp - 0x11c], 0
lea ebx, [esi + eax]
je 0x1003187d
push 0x1000938c
lea eax, [ebp - 0x110]
push 0x100
push eax
call edi
add esp, 0xc
test byte [ebp - 0x11c], 1
lea eax, [ebp + eax - 0x110]
mov dword [ebp - 0x114], eax
je 0x100317d2
lea ecx, [ebp - 0x10]
push 0x10009384
sub ecx, eax
push ecx
push eax
call edi
add esp, 0xc
add dword [ebp - 0x114], eax
test byte [ebp - 0x11c], 2
je 0x100317fb
lea eax, [ebp - 0x10]
sub eax, dword [ebp - 0x114]
push 0x10009374
push eax
push dword [ebp - 0x114]
call edi
add esp, 0xc
add dword [ebp - 0x114], eax
test byte [ebp - 0x11c], 4
je 0x10031824
lea eax, [ebp - 0x10]
sub eax, dword [ebp - 0x114]
push 0x10009368
push eax
push dword [ebp - 0x114]
call edi
add esp, 0xc
add dword [ebp - 0x114], eax
test dword [ebp - 0x11c], 0x10000
je 0x1003184a
lea eax, [ebp - 0x10]
sub eax, dword [ebp - 0x114]
push 0x10009358
push eax
push dword [ebp - 0x114]
call edi
add esp, 0xc
mov eax, 0x10078a80
cmp ebx, eax
jb 0x1003185c
and dword [ebp - 0x12c], 0
jmp 0x10031864
sub eax, ebx
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x110]
push eax
call fcn.1001c194
push eax
push dword [ebp - 0x12c]
push ebx
call edi
add esp, 0xc
push esi
push dword [ebp - 0x128]
call fcn.10011965
mov eax, dword [0x10115084]
push dword [eax]
push 0x10114468
push 0x10009340
push 0x20000
push esi
call edi
add esp, 0x14
push esi
call fcn.1001c194
push eax
push dword [ebp - 0x128]
call fcn.10011965
push dword [ebp - 0x124]
push dword [ebp - 0x130]
push dword [ebp - 0x120]
push dword [ebp - 0x118]
push dword [ebp - 0x128]
call fcn.100313ed
and dword [0x10116d50], 0
mov ecx, dword [0x1011609c]
mov eax, dword [ecx + 0x34]
mov dword [ebp - 0x130], eax
test eax, eax
je 0x10031dbe
mov eax, dword [0x10115084]
mov ebx, dword [eax + 0x18]
movzx edx, word [ebx + 0x14]
mov ecx, dword [ecx + 0x30]
and dword [ebp - 0x11c], 0
lea edx, [edx + ebx + 0x18]
movzx ebx, word [ebx + 6]
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x124], ecx
test ebx, ebx
je 0x10031dbe
mov ecx, dword [edx + 0xc]
cmp dword [ebp - 0x124], ecx
jb 0x10031942
mov ebx, dword [edx + 8]
add ebx, ecx
cmp dword [ebp - 0x124], ebx
jb 0x1003195e
inc dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x11c]
add edx, 0x28
cmp ecx, dword [ebp - 0x118]
jb 0x1003192a
jmp 0x10031dbe
mov ebx, dword [edx + 0x14]
mov eax, dword [eax]
and dword [ebp - 0x12c], 0
sub ebx, ecx
add ebx, eax
mov eax, dword [ebp - 0x130]
add ebx, dword [ebp - 0x124]
test eax, eax
je 0x10031dbe
dec eax
shr eax, 3
inc eax
mov dword [ebp - 0x130], eax
movzx eax, word [ebx + 4]
push eax
push 0x1000165c
call fcn.1001c102
push eax
push 0x10114468
push 0x10009334
push 0x20000
push esi
call edi
movzx ecx, word [ebx + 4]
shl ecx, 2
mov dword [ebp - 0x120], ecx
movzx ecx, word [ebx + 6]
add eax, esi
add esp, 0x18
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x124], ecx
test cl, 1
je 0x10031a14
mov ecx, 0x10078a80
cmp eax, ecx
jb 0x100319e8
and dword [ebp - 0x118], 0
jmp 0x100319f0
sub ecx, eax
mov dword [ebp - 0x118], ecx
push 0x1000932c
call fcn.1001c102
push eax
push dword [ebp - 0x118]
push dword [ebp - 0x114]
call edi
add esp, 0xc
add dword [ebp - 0x114], eax
jmp 0x10031a5b
test cl, 2
je 0x10031a61
mov ecx, 0x10078a80
cmp eax, ecx
jb 0x10031a2b
and dword [ebp - 0x118], 0
jmp 0x10031a33
sub ecx, eax
mov dword [ebp - 0x118], ecx
push 0x10009324
call fcn.1001c102
push eax
push dword [ebp - 0x118]
push dword [ebp - 0x114]
call edi
add dword [ebp - 0x114], eax
add esp, 0xc
shl dword [ebp - 0x120], 1
mov eax, dword [ebp - 0x114]
test byte [ebp - 0x124], 4
je 0x10031aac
mov ecx, 0x10078a80
cmp eax, ecx
jb 0x10031a7c
and dword [ebp - 0x118], 0
jmp 0x10031a84
sub ecx, eax
mov dword [ebp - 0x118], ecx
push 0x10009314
call fcn.1001c102
push eax
push dword [ebp - 0x118]
push dword [ebp - 0x114]
call edi
add esp, 0xc
add dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
test byte [ebp - 0x124], 0x10
je 0x10031af7
mov ecx, 0x10078a80
cmp eax, ecx
jb 0x10031ac7
and dword [ebp - 0x118], 0
jmp 0x10031acf
sub ecx, eax
mov dword [ebp - 0x118], ecx
push 0x10009300
call fcn.1001c102
push eax
push dword [ebp - 0x118]
push dword [ebp - 0x114]
call edi
add esp, 0xc
add dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
test byte [ebp - 0x124], 8
je 0x10031b42
mov ecx, 0x10078a80
cmp eax, ecx
jb 0x10031b12
and dword [ebp - 0x118], 0
jmp 0x10031b1a
sub ecx, eax
mov dword [ebp - 0x118], ecx
push 0x100092ec
call fcn.1001c102
push eax
push dword [ebp - 0x118]
push dword [ebp - 0x114]
call edi
add esp, 0xc
add dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
mov ecx, 0x10078a80
cmp eax, ecx
jb 0x10031b54
and dword [ebp - 0x118], 0
jmp 0x10031b5c
sub ecx, eax
mov dword [ebp - 0x118], ecx
push 0x100092e8
call fcn.1001c102
push eax
push dword [ebp - 0x118]
push dword [ebp - 0x114]
call edi
add dword [ebp - 0x114], eax
add esp, 0xc
push dword [ebp - 0x120]
push dword [ebx]
push dword [ebp - 0x114]
call fcn.10012a14
mov ecx, dword [0x10115084]
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebx]
call fcn.1001b643
test eax, eax
mov eax, 0x10078a80
je 0x10031d54
mov ecx, dword [ebp - 0x114]
mov dword [ebp - 0x120], ecx
cmp ecx, eax
jb 0x10031bcc
xor eax, eax
jmp 0x10031bce
sub eax, ecx
push 0x100092e4
push eax
push ecx
call edi
add dword [ebp - 0x114], eax
and dword [ebp - 0x118], 0
xor eax, eax
add esp, 0xc
cmp ax, word [ebx + 4]
jae 0x10031d13
test byte [ebx + 6], 1
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax]
mov dword [ebp - 0x124], ecx
je 0x10031c3f
mov eax, 0x10078a80
cmp dword [ebp - 0x114], eax
jb 0x10031c18
xor eax, eax
jmp 0x10031c1e
sub eax, dword [ebp - 0x114]
push ecx
push 0x100092dc
push eax
push dword [ebp - 0x114]
call edi
add dword [ebp - 0x114], eax
add esp, 0x10
add dword [ebp - 0x11c], 4
jmp 0x10031c79
mov ecx, 0x10078a80
cmp dword [ebp - 0x114], ecx
jb 0x10031c50
xor ecx, ecx
jmp 0x10031c56
sub ecx, dword [ebp - 0x114]
push dword [eax + 4]
push dword [eax]
push 0x100092d0
push ecx
push dword [ebp - 0x114]
call edi
add dword [ebp - 0x114], eax
add esp, 0x14
add dword [ebp - 0x11c], 8
mov ecx, dword [0x10116d4c]
test ecx, ecx
jne 0x10031cb2
push 0x10
call fcn.10042e16
pop ecx
mov dword [ebp - 0x170], eax
and dword [ebp - 4], 0
test eax, eax
je 0x10031ca4
push 0x18
mov ecx, eax
call fcn.1003e047
jmp 0x10031ca6
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ecx, eax
mov dword [0x10116d4c], ecx
push dword [0x10116d50]
call fcn.1003e087
mov ecx, dword [ebp - 0x124]
mov dword [eax], ecx
push dword [0x10116d50]
mov ecx, dword [0x10116d4c]
call fcn.1003e087
mov cx, word [ebp - 0x12c]
mov word [eax + 4], cx
push dword [0x10116d50]
mov ecx, dword [0x10116d4c]
call fcn.1003e087
mov ecx, dword [ebp - 0x118]
mov word [eax + 6], cx
inc dword [0x10116d50]
inc ecx
mov dword [ebp - 0x118], ecx
cmp cx, word [ebx + 4]
jb 0x10031bf3
mov eax, 0x10078a80
cmp dword [ebp - 0x120], eax
jb 0x10031d29
and dword [ebp - 0x118], 0
jmp 0x10031d35
sub eax, dword [ebp - 0x120]
mov dword [ebp - 0x118], eax
push dword [ebp - 0x120]
call fcn.1001c194
push eax
push dword [ebp - 0x118]
push dword [ebp - 0x120]
call edi
add esp, 0xc
jmp 0x10031d9d
cmp dword [ebp - 0x114], eax
jb 0x10031d65
and dword [ebp - 0x118], 0
jmp 0x10031d71
sub eax, dword [ebp - 0x114]
mov dword [ebp - 0x118], eax
push 0xfde9
push 0x1ad
call fcn.10026985
push eax
call fcn.1001c228
push eax
push 0x10003704
push dword [ebp - 0x118]
push dword [ebp - 0x114]
call edi
add esp, 0x10
push esi
push dword [ebp - 0x128]
call fcn.10011965
add ebx, 8
inc dword [ebp - 0x12c]
dec dword [ebp - 0x130]
jne 0x1003198d
call fcn.1004a619
ret 4