Function at 0x5003b0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x2c
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [esp + 0x34]
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp + 0x6486b0], 2
je 0x50059d
mov ecx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 0x34]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
cmp eax, dword [ebp + 0x64b790]
je 0x50040f
mov eax, dword [ebp + 0x6496e0]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x523720]
lea ecx, [ebp + 0x6496e0]
call esi
mov eax, dword [esp + 0x10]
push eax
push dword [ebp + 0x64b780]
mov ecx, ebp
mov dword [ebp + 0x64b790], eax
call fcn.004f7c10
mov ecx, dword [ebp + 0x6496e0]
mov edi, eax
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x523720]
lea ecx, [ebp + 0x6496e0]
call esi
test al, al
jne 0x5004f8
mov eax, dword [ebp + 0x6496e0]
push 0
push edi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x523720]
lea ecx, [ebp + 0x6496e0]
call esi
test al, al
jne 0x5004f8
lea ebx, [ebx]
cmp dword [ebp + 0x64b748], 0
jne 0x50048d
push edi
mov ecx, 0x58c304
call fcn.0046dc70
push 0x12
mov ecx, ebp
call fcn.004f9710
mov esi, dword [esp + 0x10]
mov ecx, ebp
push esi
call fcn.004f65d0
cmp eax, 9
je 0x500583
mov ecx, dword [ebp + 0x6486b0]
cmp ecx, 1
je 0x5004b2
cmp ecx, 2
jne 0x5004bb
cmp eax, 3
je 0x500569
push edi
call fcn.005097b2
add esp, 4
mov ecx, ebp
push esi
push dword [ebp + 0x64b780]
call fcn.004f7c10
mov edi, eax
mov eax, dword [ebp + 0x6496e0]
push 0
push edi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x523720]
lea ecx, [ebp + 0x6496e0]
call esi
test al, al
je 0x500470
test edi, edi
je 0x500505
push edi
call fcn.005097b2
add esp, 4
mov esi, dword [ebp + 0x6496e0]
push 0
push dword [esp + 0x18]
push dword [esp + 0x20]
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x523720]
lea ecx, [ebp + 0x6496e0]
call esi
cmp dword [ebp + 0x6486b0], 2
je 0x50059d
push 0x53817c
lea edi, [ebp + 0x6496e0]
mov ecx, ebp
push edi
call fcn.004fc770
test eax, eax
jne 0x50059d
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x523720]
mov ecx, edi
call esi
push dword [ebp + 0x64b75c]
mov ecx, 0x58c304
call fcn.0046d940
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00502f8e
add esp, 0x2c
ret 4
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00502f8e
add esp, 0x2c
ret 4
mov eax, dword [ebp + 0x6496e0]
lea edi, [ebp + 0x6496e0]
push 0x1a
lea ecx, [esp + 0x20]
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x523720]
mov ecx, edi
call esi
cmp eax, 0x1a
je 0x5005f8
cmp dword [ebp + 0x6486b0], 2
je 0x5005de
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x523720]
mov ecx, edi
call esi
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00502f8e
add esp, 0x2c
ret 4
push 0x68
call fcn.005097b7
mov esi, eax
add esp, 4
test esi, esi
jne 0x50063c
cmp dword [ebp + 0x6486b0], 2
je 0x500622
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x523720]
mov ecx, edi
call esi
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00502f8e
add esp, 0x2c
ret 4
movzx ecx, byte [esp + 0x1d]
movzx eax, byte [esp + 0x1c]
shl cx, 8
or cx, ax
mov word [esi + 2], cx
movzx ecx, byte [esp + 0x1f]
movzx eax, byte [esp + 0x1e]
shl cx, 8
or cx, ax
mov word [esi + 0x2e], cx
movzx ecx, byte [esp + 0x21]
movzx eax, byte [esp + 0x20]
shl cx, 8
or cx, ax
mov word [esi + 6], cx
movzx ecx, byte [esp + 0x25]
movzx eax, byte [esp + 0x24]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x23]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x22]
shl ecx, 8
or ecx, eax
mov dword [esi + 8], ecx
movzx ecx, byte [esp + 0x29]
movzx eax, byte [esp + 0x28]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x27]
shl ecx, 0x10
shl ax, 8
movzx eax, ax
or ecx, eax
movzx eax, byte [esp + 0x26]
or ecx, eax
mov dword [esi + 0xc], ecx
movzx ecx, byte [esp + 0x33]
movzx eax, byte [esp + 0x32]
shl cx, 8
or cx, ax
mov word [esi + 0x20], cx
movzx ecx, byte [esp + 0x35]
movzx eax, byte [esp + 0x34]
shl cx, 8
or cx, ax
mov word [esi + 0x22], cx
cmp dword [ebp + 0x6486b0], 2
jne 0x500778
movzx eax, byte [esp + 0x2d]
cdq
mov ecx, eax
mov edi, edx
movzx eax, byte [esp + 0x2c]
shld edi, ecx, 8
cdq
shl ecx, 8
or edi, edx
or ecx, eax
movzx eax, byte [esp + 0x2b]
shld edi, ecx, 8
cdq
shl ecx, 8
or edi, edx
or ecx, eax
movzx eax, byte [esp + 0x2a]
shld edi, ecx, 8
cdq
shl ecx, 8
or edi, edx
or ecx, eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ecx
lea edi, [ebp + 0x6496e0]
movzx ecx, byte [esp + 0x31]
movzx eax, byte [esp + 0x30]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x2f]
shl ax, 8
shl ecx, 0x10
movzx eax, ax
or ecx, eax
movzx eax, byte [esp + 0x2e]
or ecx, eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], ecx
mov eax, 0x800
test word [ebx + 4], ax
je 0x500787
or word [esi + 0x2e], ax
cmp dword [ebp + 0x6486b0], 2
jne 0x5007df
movzx eax, word [esi + 2]
movzx ecx, al
and eax, 0xff00
cmp eax, 0x2800
jbe 0x5007cf
mov eax, dword [ebp + 0x64b75c]
mov ecx, 0x58c304
push eax
push eax
call fcn.0046dfc0
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00502f8e
add esp, 0x2c
ret 4
cmp ecx, 0x64
ja 0x5007a3
mov eax, 0xc8
cmp word [esi + 6], ax
ja 0x5007a3
movzx eax, word [esi + 0x20]
inc eax
mov dword [esi + 0x3c], 0
push eax
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
call fcn.005097b7
add esp, 4
mov dword [esi + 0x48], eax
test eax, eax
je 0x500622
movzx eax, word [esi + 0x22]
test ax, ax
je 0x50082a
push eax
call fcn.005097b7
add esp, 4
mov dword [esi + 0x3c], eax
test eax, eax
je 0x500622
mov ecx, dword [edi]
movzx eax, word [esi + 0x20]
push eax
push dword [esi + 0x48]
mov edi, dword [ecx + 0xc]
mov ecx, edi
call dword [0x523720]
lea ecx, [ebp + 0x6496e0]
call edi
movzx ecx, word [esi + 0x20]
cmp eax, ecx
jne 0x5005de
movzx edx, word [esi + 0x22]
test dx, dx
je 0x500885
mov ecx, dword [ebp + 0x6496e0]
push edx
push dword [esi + 0x3c]
mov edi, dword [ecx + 0xc]
mov ecx, edi
call dword [0x523720]
lea ecx, [ebp + 0x6496e0]
call edi
movzx ecx, word [esi + 0x22]
cmp eax, ecx
jne 0x5005de
movzx ecx, word [esi + 0x20]
mov eax, dword [esi + 0x48]
push esi
mov byte [ecx + eax], 0
mov ecx, ebp
call fcn.004fc380
mov dword [ebp + 0x64b754], eax
mov ecx, ebp
xor eax, eax
mov word [esi], ax
mov ax, word [ebx]
mov word [esi], ax
mov eax, 0x800
test word [esi + 0x2e], ax
je 0x5008e2
mov eax, dword [esi + 0x48]
push eax
mov dword [esi + 0x4c], eax
call fcn.004f8350
test eax, eax
jne 0x5008dd
push dword [esi + 0x4c]
call fcn.00510063
add esp, 4
mov dword [esi + 0x48], eax
test eax, eax
jne 0x5008e8
jmp 0x500622
mov dword [esi + 0x48], eax
jmp 0x5008e8
push esi
call fcn.004fdb80
movzx ecx, word [esi]
movzx eax, cl
push eax
shr ecx, 8
push ecx
call fcn.004c8aa0
test al, al
je 0x500907
mov eax, dword [esi + 0x48]
push eax
push eax
call dword [sym.imp.USER32.dll_OemToCharA]
cmp dword [ebp + 0x6486b0], 2
jne 0x50094f
movzx eax, word [esi + 0x2e]
mov word [esi + 4], ax
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [ebx + 0x50], 0
movzx eax, word [esi + 0x2e]
mov word [ebx + 4], ax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
jmp 0x500967
mov eax, dword [ebx + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x4c]
mov ecx, ebp
test eax, eax
je 0x500978
push eax
call fcn.005021e0
jmp 0x500980
push dword [esi + 0x48]
call fcn.00501f90
mov dword [ebx + 0x54], eax
cmp dword [ebp + 0x6486b0], 3
jne 0x5009df
mov ecx, dword [ebx + 0x48]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x500992
sub ecx, edx
mov word [ebx + 0x20], cx
push dword [esi + 0x48]
mov word [esi + 0x20], cx
call fcn.005097b2
push dword [ebx + 0x48]
call fcn.00510063
add esp, 8
mov dword [esi + 0x48], eax
test eax, eax
je 0x500622
push dword [esi + 0x4c]
call fcn.005097b2
mov eax, dword [ebx + 0x4c]
add esp, 4
test eax, eax
je 0x5009dc
push eax
call fcn.00510063
add esp, 4
mov dword [esi + 0x4c], eax
mov eax, dword [ebp + 0x64b7a4]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0x64b7e8]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp + 0x64b7ec]
mov dword [ebx + 0x34], eax
cmp dword [ebp + 0x6486b0], 2
je 0x500a25
movzx eax, word [ebx + 4]
test al, 1
jne 0x500a25
and eax, 0xfffffff7
mov word [ebx + 4], ax
mov word [esi + 4], ax
movzx eax, word [esi + 0x2e]
and eax, 0xfffffff7
mov word [esi + 0x2e], ax
mov word [ebx + 0x2e], ax
test byte [ebx + 0x2e], 8
mov dword [esp + 0x10], 0
je 0x500a4c
cmp dword [ebp + 0x64b754], 0
mov dword [esp + 0x10], 0x18
jne 0x500a4c
mov dword [esp + 0x10], 0x10
movzx eax, word [esi + 0x22]
cdq
mov ecx, eax
mov edi, edx
movzx eax, word [esi + 0x20]
cdq
add ecx, eax
adc edi, edx
add ecx, dword [ebx + 0x10]
adc edi, dword [ebx + 0x14]
add ecx, dword [esp + 0x10]
adc edi, 0
add ecx, 0x1e
adc edi, 0
add dword [ebp + 0x64b778], ecx
adc dword [ebp + 0x64b77c], edi
cmp dword [ebp + 0x6486b0], 2
jne 0x500a8e
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
jmp 0x500a94
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
push 0
push esi
mov ecx, ebp
call fcn.004fd5e0
test eax, eax
je 0x500abc
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00502f8e
add esp, 0x2c
ret 4
cmp dword [ebp + 0x6486b0], 2
jne 0x500ade
test byte [esi + 0x2e], 8
je 0x500ade
push 0xffffffffffffffff
push 0xfffffffffffffffe
mov ecx, ebp
call fcn.004f6b80
mov edi, eax
mov dword [esp + 0x10], edi
jmp 0x500af1
push dword [esi + 0x14]
mov ecx, ebp
push dword [esi + 0x10]
call fcn.004f6b80
mov edi, eax
mov dword [esp + 0x10], eax
cmp edi, 9
jne 0x500b3e
cmp word [esi + 0x22], 0
je 0x500b08
push dword [esi + 0x3c]
call fcn.005097b2
add esp, 4
cmp word [esi + 0x20], 0
je 0x500b1a
push dword [esi + 0x48]
call fcn.005097b2
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x500b2a
push eax
call fcn.005097b2
add esp, 4
push esi
call fcn.005097b2
add esp, 4
mov ecx, ebp
push 9
call fcn.004f9710
jmp 0x500b47
cmp edi, 2
je 0x500d7e
cmp dword [ebp + 0x64b728], 0
jne 0x500d7e
cmp dword [ebp + 0x6486b0], 2
jne 0x500b9d
test byte [ebx + 4], 8
je 0x500bab
cmp dword [ebp + 0x64b72c], 0
je 0x500cb5
mov eax, dword [ebp + 0x64b730]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x64b738]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x64b73c]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x64b740]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x64b744]
mov dword [esi + 0x1c], eax
test byte [ebx + 4], 8
je 0x500bab
push esi
mov ecx, ebp
call fcn.004fd4d0
cmp dword [ebp + 0x64b7f0], 1
jne 0x500be5
mov ecx, dword [ebp + 0x64b7a0]
cmp ecx, dword [ebp + 0x64b7a4]
je 0x500be5
push dword [ebp + 0x64b7d8]
lea eax, [ebp + 0x64a704]
push eax
push ecx
mov ecx, ebp
call fcn.004f7a00
push dword [ebp + 0x64b7d8]
call fcn.005097b2
add esp, 4
cmp dword [ebp + 0x6486b0], 2
jne 0x500d0c
movzx eax, word [esi + 2]
mov word [ebx + 2], ax
movzx eax, word [esi + 6]
mov word [ebx + 6], ax
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
movzx eax, word [esi + 0x2e]
mov word [ebx + 0x2e], ax
movzx eax, word [esi + 0x2e]
mov word [ebx + 4], ax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
movzx eax, word [esi + 0x20]
mov word [ebx + 0x20], ax
movzx eax, word [esi + 0x22]
mov word [ebx + 0x22], ax
mov eax, dword [esi + 0x3c]
mov dword [ebx + 0x3c], eax
movzx eax, word [esi + 0x22]
mov word [ebx + 0x24], ax
mov dword [ebx + 0x40], 0
movzx eax, word [esi + 0x22]
test ax, ax
je 0x500c97
inc eax
push eax
call fcn.005097b7
mov ecx, eax
add esp, 4
mov dword [ebx + 0x40], ecx
test ecx, ecx
je 0x500622
movzx eax, word [esi + 0x22]
push eax
push dword [esi + 0x3c]
push ecx
call fcn.00504fb0
movzx ecx, word [esi + 0x22]
add esp, 0xc
mov eax, dword [ebx + 0x40]
mov byte [ecx + eax], 0
xor eax, eax
mov word [ebx + 0x26], ax
mov word [ebx + 0x2c], ax
mov dword [ebx + 0x38], eax
mov eax, dword [esi + 0x48]
mov dword [ebx + 0x48], eax
mov eax, dword [esi + 0x4c]
mov dword [ebx + 0x4c], eax
jmp 0x500d49
cmp word [esi + 0x22], 0
je 0x500cc7
push dword [esi + 0x3c]
call fcn.005097b2
add esp, 4
cmp word [esi + 0x20], 0
je 0x500cd9
push dword [esi + 0x48]
call fcn.005097b2
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x500ce9
push eax
call fcn.005097b2
add esp, 4
push esi
call fcn.005097b2
add esp, 4
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00502f8e
add esp, 0x2c
ret 4
cmp word [esi + 0x22], 0
je 0x500d1e
push dword [esi + 0x3c]
call fcn.005097b2
add esp, 4
cmp word [esi + 0x20], 0
je 0x500d30
push dword [esi + 0x48]
call fcn.005097b2
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x500d40
push eax
call fcn.005097b2
add esp, 4
push esi
call fcn.005097b2
add esp, 4
cmp dword [ebp + 0x6486b0], 2
jne 0x500d67
cmp edi, 0xb
jne 0x500d67
push dword [ebp + 0x64b75c]
mov ecx, 0x58c304
call fcn.0046d940
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00502f8e
add esp, 0x2c
ret 4
test edi, edi
jne 0x500d8a
mov dword [esp + 0x10], 3
cmp dword [ebp + 0x6486b0], 2
jne 0x500de8
mov edi, dword [ebp + 0x6486bc]
push 0
push dword [ebp + 0x64b7e4]
mov dword [ebp + 0x64b728], 0
push dword [ebp + 0x64b7e0]
mov edi, dword [edi + 0x10]
mov ecx, edi
call dword [0x523720]
lea ecx, [ebp + 0x6486bc]
call edi
mov eax, dword [ebp + 0x64b7e0]
mov ecx, dword [ebp + 0x64b7e4]
mov dword [ebp + 0x64b7e8], eax
mov dword [ebp + 0x64b7ec], ecx
mov dword [ebp + 0x64b778], eax
mov dword [ebp + 0x64b77c], ecx
cmp word [esi + 0x22], 0
je 0x500dfa
push dword [esi + 0x3c]
call fcn.005097b2
add esp, 4
cmp word [esi + 0x20], 0
je 0x500e0c
push dword [esi + 0x48]
call fcn.005097b2
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x500e1c
push eax
call fcn.005097b2
add esp, 4
push esi
call fcn.005097b2
mov ecx, dword [esp + 0x3c]
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00502f8e
add esp, 0x2c
ret 4