Function at 0x10002e00
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x10]
push esi
push edi
xor edi, edi
test byte [ebx + 0xc8], 2
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
je 0x10002e40
cmp dword [ebx + 0xd0], edi
je 0x10002e40
mov ecx, dword [ebp + 0x10]
push ecx
push str._RI___d_bytes
push 2
mov esi, ebx
call fcn.100022d0
add esp, 0xc
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x10002e4d
cmp dword [ebp + 0x10], 0x18
jge 0x10002e5a
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov cl, byte [eax + 5]
mov edx, dword [ebx]
mov esi, dword [eax + 0xc]
mov edi, dword [eax + 0x10]
sub dword [ebp + 0x10], 0x18
mov byte [ebp - 1], cl
movzx ecx, word [eax + 6]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x20], edx
mov dl, byte [eax + 4]
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 0x14]
add eax, 0x18
mov byte [ebp + 0xb], dl
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x10], ecx
jl 0x10003161
test ecx, ecx
js 0x10003161
cmp dl, 0x51
je 0x10002ebd
cmp dl, 0x52
je 0x10002ebd
cmp dl, 0x53
je 0x10002ebd
cmp dl, 0x54
jne 0x10003155
movzx eax, word [ebp - 0x18]
push edi
mov edi, ebx
mov dword [ebp - 0x18], eax
mov dword [ebx + 0x40], eax
call fcn.10002b80
mov ecx, dword [ebx + 0x94]
lea eax, [ebx + 0x94]
add esp, 4
cmp ecx, eax
je 0x10002eea
mov edx, dword [ecx + 0x1c]
mov dword [ebx + 0x10], edx
jmp 0x10002ef0
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x10], eax
mov al, byte [ebp + 0xb]
cmp al, 0x52
jne 0x10002f82
mov edi, dword [ebx + 0x4c]
sub edi, dword [ebp - 8]
js 0x10002f0a
mov ecx, ebx
call fcn.10002a70
mov edx, esi
mov edi, ebx
call fcn.10002b00
mov ecx, dword [ebx + 0x94]
lea eax, [ebx + 0x94]
cmp ecx, eax
je 0x10002f2b
mov ecx, dword [ecx + 0x1c]
mov dword [ebx + 0x10], ecx
jmp 0x10002f31
mov edx, dword [ebx + 0x14]
mov dword [ebx + 0x10], edx
cmp dword [ebp - 0x14], 0
jne 0x10002f40
mov dword [ebp - 0x14], 1
jmp 0x10002f49
mov eax, esi
sub eax, dword [ebp - 0xc]
test eax, eax
jle 0x10002f4c
mov dword [ebp - 0xc], esi
mov ecx, 0x20
mov eax, ebx
call fcn.10002340
test eax, eax
je 0x1000309f
mov edx, dword [ebx + 0x4c]
mov ecx, dword [ebx + 0x30]
sub edx, dword [ebp - 8]
push ecx
push edx
push esi
push str.input_ack:_sn_lu_rtt_ld_rto_ld
push 0x20
mov esi, ebx
call fcn.100022d0
add esp, 0x14
jmp 0x1000309f
cmp al, 0x51
jne 0x10003049
mov ecx, 0x10
mov eax, ebx
call fcn.10002340
test eax, eax
je 0x10002fb2
mov eax, dword [ebp - 8]
push eax
push esi
push str.input_psh:_sn_lu_ts_lu
push ecx
mov esi, ebx
call fcn.100022d0
mov esi, dword [ebp - 0x10]
add esp, 0x10
mov ecx, esi
sub ecx, dword [ebx + 0x3c]
sub ecx, dword [ebx + 0x18]
jns 0x1000309f
mov edx, dword [ebp - 8]
push edx
push esi
mov esi, ebx
call fcn.10002c20
mov eax, dword [ebp - 0x10]
add esp, 8
sub eax, dword [ebx + 0x18]
js 0x1000309f
mov edi, dword [ebp - 0x1c]
mov ecx, dword [0x1001d530]
lea eax, [edi + 0x3c]
push eax
test ecx, ecx
je 0x10002ff0
call ecx
jmp 0x10002ff5
call fcn.10008c27
movzx edx, byte [ebp - 1]
mov ecx, dword [ebp - 0x20]
mov esi, eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 8]
mov dword [esi + 0x10], edx
mov edx, dword [ebp - 0x10]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x24]
add esp, 4
mov dword [esi + 0xc], 0x51
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
test edi, edi
je 0x1000303e
mov ecx, dword [ebp + 0xc]
push edi
push ecx
lea edx, [esi + 0x38]
push edx
call fcn.1000de60
add esp, 0xc
mov ecx, esi
mov esi, ebx
call fcn.10002d00
jmp 0x1000309f
cmp al, 0x53
jne 0x10003073
or dword [ebx + 0x48], 2
mov ecx, 0x40
mov eax, ebx
call fcn.10002340
test eax, eax
je 0x1000309f
push str.input_probe
push ecx
mov esi, ebx
call fcn.100022d0
add esp, 8
jmp 0x1000309f
cmp al, 0x54
jne 0x10003155
mov ecx, 0x80
mov eax, ebx
call fcn.10002340
test eax, eax
je 0x1000309f
mov eax, dword [ebp - 0x18]
push eax
push str.input_wins:__lu
push ecx
mov esi, ebx
call fcn.100022d0
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x10]
add dword [ebp + 0xc], ecx
sub eax, ecx
mov dword [ebp + 0x10], eax
cmp eax, 0x18
jge 0x10002e57
cmp dword [ebp - 0x14], 0
je 0x100030c6
mov esi, dword [ebp - 0xc]
mov eax, ebx
call fcn.10002be0
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebp - 0x28]
test ecx, ecx
jle 0x1000314c
mov edi, dword [ebx + 0x44]
mov eax, dword [ebx + 0x40]
cmp edi, eax
jae 0x1000314c
mov ecx, dword [ebx + 8]
cmp edi, dword [ebx + 0x24]
jae 0x100030ee
inc edi
add dword [ebx + 0x80], ecx
mov dword [ebx + 0x44], edi
jmp 0x1000313b
cmp dword [ebx + 0x80], ecx
jae 0x100030fc
mov dword [ebx + 0x80], ecx
mov esi, dword [ebx + 0x80]
mov eax, ecx
imul eax, ecx
xor edx, edx
div esi
inc edi
imul edi, ecx
mov edx, ecx
shr edx, 4
add eax, esi
add eax, edx
mov dword [ebx + 0x80], eax
cmp edi, eax
ja 0x10003138
mov esi, ecx
test ecx, ecx
jne 0x1000312d
mov esi, 1
lea eax, [eax + ecx - 1]
xor edx, edx
div esi
mov dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x40]
cmp dword [ebx + 0x44], eax
jbe 0x1000314c
mov dword [ebx + 0x44], eax
imul eax, ecx
mov dword [ebx + 0x80], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret