Function at 0x407b50
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
mov ax, word [ebx + 8]
mov bp, word [ebx + 0x18]
sub ax, word [ebx + 4]
and ebp, 0x8000
mov dword [esp + 0x20], ebp
inc eax
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x18]
test ah, 0x80
je 0x407b8b
and ah, 0x7f
push ebx
mov dword [ebx + 0x18], eax
call fcn.00407a20
add esp, 4
push ebx
call fcn.00402b40
mov eax, dword [ebx + 0x18]
add esp, 4
test eax, 0x4000000
je 0x407ba9
push ebx
call fcn.00406000
add esp, 4
jmp 0x407bcd
test eax, 0x20000
jne 0x407bcd
test ah, 0x10
je 0x407bbc
mov eax, 0xfb
jmp 0x407bc3
xor eax, eax
mov al, byte [0x4d6532]
push eax
push ebx
call fcn.00405d90
add esp, 8
mov ax, word [ebx + 4]
mov cx, word [ebx + 8]
mov dx, word [ebx + 6]
add ax, 2
mov word [esp + 0x24], ax
sub cx, 2
movzx ax, byte [ebx + 0x49]
add dx, 2
mov word [esp + 0x28], cx
mov word [esp + 0x26], dx
mov edx, dword [esp + 0x26]
mov cl, byte [ebx + 0x4d]
add eax, edx
mov word [esp + 0x2a], ax
mov al, byte [ebx + 0x4a]
mov dl, al
dec al
test dl, dl
mov byte [esp + 8], cl
mov byte [esp + 0x30], al
je 0x407ded
push esi
push edi
mov edi, dword [esp + 0x38]
and edi, 0xff
inc edi
mov dword [esp + 0x1c], edi
mov al, byte [ebx + 0x46]
mov esi, dword [esp + 0x10]
test al, al
jne 0x407c3e
mov al, 2
jmp 0x407c79
mov al, byte [esp + 0x10]
mov cl, byte [ebx + 0x4f]
cmp al, cl
jne 0x407c61
mov eax, dword [ebx + 0x18]
test eax, 0x10000000
jne 0x407c61
test ah, 0x20
je 0x407c5d
test ah, 0x40
je 0x407c61
mov al, 4
jmp 0x407c79
mov edx, dword [ebx + 0x3e]
mov ecx, esi
and ecx, 0xff
mov al, byte [edx + ecx]
and al, 1
neg al
sbb al, al
and al, 3
add al, 2
mov ecx, dword [ebx + 0x18]
mov byte [esp + 0x18], al
test ecx, 0x8000000
jne 0x407ca8
cmp al, 5
jne 0x407c9a
lea eax, [esp + 0x2c]
push eax
push 0x2e
call fcn.004062f0
jmp 0x407cb3
lea ecx, [esp + 0x2c]
push ecx
push 0x2f
call fcn.004062f0
jmp 0x407cb3
lea edx, [esp + 0x2c]
push edx
push ebx
call fcn.00405c30
mov al, byte [esp + 0x18]
mov cl, byte [ebx + 0x46]
add esp, 8
cmp al, cl
jae 0x407dc7
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00486c50
and esi, 0xff
mov byte [0x4d4f8a], 0x11
mov edx, dword [ebx + 0x3a]
or ecx, 0xffffffff
shl esi, 2
xor eax, eax
add esp, 4
mov edi, dword [edx + esi]
mov byte [esp + 0x38], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0
mov byte [esp + 0x18], cl
push 0x125
mov eax, dword [esp + 0x1c]
push str.C:war2bneDLGLBOX.cpp
and eax, 0xff
mov dword [esp + 0x30], eax
inc eax
push eax
call sub.Storm.dll_Ordinal_401
mov ebp, eax
mov eax, dword [ebx + 0x3a]
or ecx, 0xffffffff
push ebp
mov edi, dword [eax + esi]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x24]
and esi, 0xffff
call fcn.00486ad0
add esp, 4
cmp eax, esi
jle 0x407d92
mov eax, dword [esp + 0x24]
lea edi, [eax + ebp]
mov dl, byte [esp + 0x14]
mov cl, byte [esp + 0x38]
dec dl
mov byte [edi], cl
mov byte [esp + 0x14], dl
push ebp
mov edx, dword [esp + 0x18]
and edx, 0xff
mov al, byte [edx + ebp]
lea edi, [edx + ebp]
mov byte [esp + 0x3c], al
mov byte [edi], 0
call fcn.00486ad0
add esp, 4
cmp eax, esi
jg 0x407d5e
movsx ecx, word [esp + 0x2e]
movsx edx, word [esp + 0x2c]
add ecx, 2
push ebp
add edx, 2
push ecx
push edx
call fcn.00486e60
add esp, 0xc
push 0
push 0x133
push str.C:war2bneDLGLBOX.cpp
push ebp
call sub.Storm.dll_Ordinal_403
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x28]
movzx ax, byte [ebx + 0x49]
mov cl, byte [esp + 0x10]
add word [esp + 0x2e], ax
add word [esp + 0x32], ax
inc cl
dec edi
mov byte [esp + 0x10], cl
mov dword [esp + 0x1c], edi
jne 0x407c2f
pop edi
pop esi
test bp, bp
je 0x407dfb
mov eax, dword [ebx + 0x18]
or ah, 0x80
mov dword [ebx + 0x18], eax
pop ebp
pop ebx
add esp, 0x24
ret