Function at 0x4f5a20
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x2c
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
mov ebp, dword [esp + 0x38]
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x648530], 2
je 0x4f5bb1
mov eax, dword [ebp + 0x30]
mov esi, dword [ebp + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
cmp esi, dword [ebx + 0x64b610]
je 0x4f5a71
mov eax, dword [ebx + 0x649560]
lea ecx, [ebx + 0x649560]
call dword [eax + 8]
push esi
push dword [ebx + 0x64b600]
mov ecx, ebx
mov dword [ebx + 0x64b610], esi
call fcn.004ed740
mov edx, dword [ebx + 0x649560]
lea edi, [ebx + 0x649560]
mov ecx, edi
mov esi, eax
mov edx, dword [edx + 0x18]
call edx
test al, al
jne 0x4f5b28
mov eax, dword [edi]
mov ecx, edi
push 0
push esi
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x4f5b28
cmp dword [ebx + 0x64b5c8], 0
jne 0x4f5acf
push esi
mov ecx, 0x57f41c
call fcn.004667d0
push 0x12
mov ecx, ebx
call fcn.004ef1f0
push dword [esp + 0x10]
mov ecx, ebx
call fcn.004ec280
cmp eax, 9
je 0x4f5b97
mov ecx, dword [ebx + 0x648530]
cmp ecx, 1
je 0x4f5af3
cmp ecx, 2
jne 0x4f5afc
cmp eax, 3
je 0x4f5b7d
push esi
call fcn.004fe8b9
add esp, 4
mov ecx, ebx
push dword [esp + 0x10]
push dword [ebx + 0x64b600]
call fcn.004ed740
mov esi, eax
mov ecx, edi
mov eax, dword [edi]
push 0
push esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x4f5ab2
test esi, esi
je 0x4f5b35
push esi
call fcn.004fe8b9
add esp, 4
mov eax, dword [edi]
mov ecx, edi
push 0
push dword [esp + 0x18]
push dword [esp + 0x20]
call dword [eax + 0x10]
cmp dword [ebx + 0x648530], 2
je 0x4f5bb1
push 0x52b2b0
lea esi, [ebx + 0x649560]
mov ecx, ebx
push esi
call fcn.004f21b0
test eax, eax
jne 0x4f5bb1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
push dword [ebx + 0x64b5dc]
mov ecx, 0x57f41c
call fcn.004664c0
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004f833c
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.004f833c
add esp, 0x2c
ret 4
mov eax, dword [ebx + 0x649560]
lea edi, [ebx + 0x649560]
push 0x1a
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call dword [eax + 0xc]
cmp eax, 0x1a
je 0x4f5bf8
cmp dword [ebx + 0x648530], 2
je 0x4f5bde
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004f833c
add esp, 0x2c
ret 4
push 0x68
call fcn.004fe8be
mov esi, eax
add esp, 4
test esi, esi
jne 0x4f5c32
cmp dword [ebx + 0x648530], 2
je 0x4f5c18
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004f833c
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 [ebx + 0x648530], 2
jne 0x4f5d72
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, [ebx + 0x649560]
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 [ebp + 4], ax
je 0x4f5d81
or word [esi + 0x2e], ax
cmp dword [ebx + 0x648530], 2
jne 0x4f5dd9
movzx eax, word [esi + 2]
movzx ecx, al
and eax, 0xff00
cmp eax, 0x2800
jbe 0x4f5dc9
mov eax, dword [ebx + 0x64b5dc]
mov ecx, 0x57f41c
push eax
push eax
call fcn.00466b20
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004f833c
add esp, 0x2c
ret 4
cmp ecx, 0x64
ja 0x4f5d9d
mov eax, 0xc8
cmp word [esi + 6], ax
ja 0x4f5d9d
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.004fe8be
add esp, 4
mov dword [esi + 0x48], eax
test eax, eax
je 0x4f5c18
movzx eax, word [esi + 0x22]
test ax, ax
je 0x4f5e24
push eax
call fcn.004fe8be
add esp, 4
mov dword [esi + 0x3c], eax
test eax, eax
je 0x4f5c18
movzx eax, word [esi + 0x20]
mov ecx, edi
mov edx, dword [edi]
push eax
push dword [esi + 0x48]
call dword [edx + 0xc]
movzx ecx, word [esi + 0x20]
cmp eax, ecx
jne 0x4f5bde
movzx eax, word [esi + 0x22]
test ax, ax
je 0x4f5e5f
mov edx, dword [edi]
mov ecx, edi
push eax
push dword [esi + 0x3c]
call dword [edx + 0xc]
movzx ecx, word [esi + 0x22]
cmp eax, ecx
jne 0x4f5bde
movzx ecx, word [esi + 0x20]
mov eax, dword [esi + 0x48]
push esi
mov byte [ecx + eax], 0
mov ecx, ebx
call fcn.004f1dc0
mov dword [ebx + 0x64b5d4], eax
mov ecx, ebx
xor eax, eax
mov word [esi], ax
mov ax, word [ebp]
mov word [esi], ax
mov eax, 0x800
test word [esi + 0x2e], ax
je 0x4f5ebd
mov eax, dword [esi + 0x48]
push eax
mov dword [esi + 0x4c], eax
call fcn.004ede80
test eax, eax
jne 0x4f5eb8
push dword [esi + 0x4c]
call fcn.0050515b
add esp, 4
mov dword [esi + 0x48], eax
test eax, eax
jne 0x4f5ec3
jmp 0x4f5c18
mov dword [esi + 0x48], eax
jmp 0x4f5ec3
push esi
call fcn.004f3540
mov eax, 0xff00
test word [ebp], ax
jne 0x4f5ed9
mov eax, dword [esi + 0x48]
push eax
push eax
call dword [sym.imp.USER32.dll_OemToCharA]
cmp dword [ebx + 0x648530], 2
jne 0x4f5f21
movzx eax, word [esi + 0x2e]
mov word [esi + 4], ax
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [ebp + 0x50], 0
movzx eax, word [esi + 0x2e]
mov word [ebp + 4], ax
mov eax, dword [esi + 0x18]
mov dword [ebp + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp + 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebp + 0x14], eax
jmp 0x4f5f39
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x4c]
mov ecx, ebx
test eax, eax
je 0x4f5f4a
push eax
call fcn.004f7710
jmp 0x4f5f52
push dword [esi + 0x48]
call fcn.004f74c0
mov dword [ebp + 0x54], eax
cmp dword [ebx + 0x648530], 3
jne 0x4f5fb1
mov ecx, dword [ebp + 0x48]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f5f64
sub ecx, edx
mov word [ebp + 0x20], cx
push dword [esi + 0x48]
mov word [esi + 0x20], cx
call fcn.004fe8b9
push dword [ebp + 0x48]
call fcn.0050515b
add esp, 8
mov dword [esi + 0x48], eax
test eax, eax
je 0x4f5c18
push dword [esi + 0x4c]
call fcn.004fe8b9
mov eax, dword [ebp + 0x4c]
add esp, 4
test eax, eax
je 0x4f5fae
push eax
call fcn.0050515b
add esp, 4
mov dword [esi + 0x4c], eax
mov eax, dword [ebx + 0x64b624]
mov dword [ebp + 0x28], eax
mov eax, dword [ebx + 0x64b668]
mov dword [ebp + 0x30], eax
mov eax, dword [ebx + 0x64b66c]
mov dword [ebp + 0x34], eax
cmp dword [ebx + 0x648530], 2
je 0x4f5ff7
movzx eax, word [ebp + 4]
test al, 1
jne 0x4f5ff7
and eax, 0xfffffff7
mov word [ebp + 4], ax
mov word [esi + 4], ax
movzx eax, word [esi + 0x2e]
and eax, 0xfffffff7
mov word [esi + 0x2e], ax
mov word [ebp + 0x2e], ax
test byte [ebp + 0x2e], 8
mov dword [esp + 0x10], 0
je 0x4f601e
cmp dword [ebx + 0x64b5d4], 0
mov dword [esp + 0x10], 0x18
jne 0x4f601e
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 [esp + 0x10]
adc edi, 0
add ecx, dword [ebp + 0x10]
adc edi, dword [ebp + 0x14]
add ecx, 0x1e
adc edi, 0
add dword [ebx + 0x64b5f8], ecx
adc dword [ebx + 0x64b5fc], edi
cmp dword [ebx + 0x648530], 2
jne 0x4f6060
mov eax, dword [esi + 0xc]
mov dword [ebp + 0xc], eax
jmp 0x4f6066
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
push 0
push esi
mov ecx, ebx
call fcn.004f2fb0
test eax, eax
je 0x4f608e
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004f833c
add esp, 0x2c
ret 4
cmp dword [ebx + 0x648530], 2
jne 0x4f60a3
test byte [esi + 0x2e], 8
je 0x4f60a3
push 0xffffffffffffffff
push 0xfffffffffffffffe
jmp 0x4f60a9
push dword [esi + 0x14]
push dword [esi + 0x10]
mov ecx, ebx
call fcn.004ec830
mov edi, eax
cmp edi, 9
jne 0x4f60ff
cmp word [esi + 0x22], 0
je 0x4f60c9
push dword [esi + 0x3c]
call fcn.004fe8b9
add esp, 4
cmp word [esi + 0x20], 0
je 0x4f60db
push dword [esi + 0x48]
call fcn.004fe8b9
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4f60eb
push eax
call fcn.004fe8b9
add esp, 4
push esi
call fcn.004fe8b9
add esp, 4
mov ecx, ebx
push 9
call fcn.004ef1f0
jmp 0x4f6108
cmp edi, 2
je 0x4f633f
cmp dword [ebx + 0x64b5a8], 0
jne 0x4f633f
cmp dword [ebx + 0x648530], 2
jne 0x4f615e
test byte [ebp + 4], 8
je 0x4f616c
cmp dword [ebx + 0x64b5ac], 0
je 0x4f6276
mov eax, dword [ebx + 0x64b5b0]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x64b5b8]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x64b5bc]
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 0x64b5c0]
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 0x64b5c4]
mov dword [esi + 0x1c], eax
test byte [ebp + 4], 8
je 0x4f616c
push esi
mov ecx, ebx
call fcn.004f2ea0
cmp dword [ebx + 0x64b670], 1
jne 0x4f61a6
mov ecx, dword [ebx + 0x64b620]
cmp ecx, dword [ebx + 0x64b624]
je 0x4f61a6
push dword [ebx + 0x64b658]
lea eax, [ebx + 0x64a584]
push eax
push ecx
mov ecx, ebx
call fcn.004ed570
push dword [ebx + 0x64b658]
call fcn.004fe8b9
add esp, 4
cmp dword [ebx + 0x648530], 2
jne 0x4f62cd
movzx eax, word [esi + 2]
mov word [ebp + 2], ax
movzx eax, word [esi + 6]
mov word [ebp + 6], ax
mov eax, dword [esi + 8]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebp + 0xc], eax
movzx eax, word [esi + 0x2e]
mov word [ebp + 0x2e], ax
movzx eax, word [esi + 0x2e]
mov word [ebp + 4], ax
mov eax, dword [esi + 0x18]
mov dword [ebp + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp + 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebp + 0x14], eax
movzx eax, word [esi + 0x20]
mov word [ebp + 0x20], ax
movzx eax, word [esi + 0x22]
mov word [ebp + 0x22], ax
mov eax, dword [esi + 0x3c]
mov dword [ebp + 0x3c], eax
movzx eax, word [esi + 0x22]
mov word [ebp + 0x24], ax
mov dword [ebp + 0x40], 0
movzx eax, word [esi + 0x22]
test ax, ax
je 0x4f6258
inc eax
push eax
call fcn.004fe8be
mov ecx, eax
add esp, 4
mov dword [ebp + 0x40], ecx
test ecx, ecx
je 0x4f5c18
movzx eax, word [esi + 0x22]
push eax
push dword [esi + 0x3c]
push ecx
call fcn.004fa2e0
movzx ecx, word [esi + 0x22]
add esp, 0xc
mov eax, dword [ebp + 0x40]
mov byte [ecx + eax], 0
xor eax, eax
mov word [ebp + 0x26], ax
mov word [ebp + 0x2c], ax
mov dword [ebp + 0x38], eax
mov eax, dword [esi + 0x48]
mov dword [ebp + 0x48], eax
mov eax, dword [esi + 0x4c]
mov dword [ebp + 0x4c], eax
jmp 0x4f630a
cmp word [esi + 0x22], 0
je 0x4f6288
push dword [esi + 0x3c]
call fcn.004fe8b9
add esp, 4
cmp word [esi + 0x20], 0
je 0x4f629a
push dword [esi + 0x48]
call fcn.004fe8b9
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4f62aa
push eax
call fcn.004fe8b9
add esp, 4
push esi
call fcn.004fe8b9
add esp, 4
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004f833c
add esp, 0x2c
ret 4
cmp word [esi + 0x22], 0
je 0x4f62df
push dword [esi + 0x3c]
call fcn.004fe8b9
add esp, 4
cmp word [esi + 0x20], 0
je 0x4f62f1
push dword [esi + 0x48]
call fcn.004fe8b9
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4f6301
push eax
call fcn.004fe8b9
add esp, 4
push esi
call fcn.004fe8b9
add esp, 4
cmp dword [ebx + 0x648530], 2
jne 0x4f6328
cmp edi, 0xb
jne 0x4f6328
push dword [ebx + 0x64b5dc]
mov ecx, 0x57f41c
call fcn.004664c0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004f833c
add esp, 0x2c
ret 4
test edi, edi
jne 0x4f6348
mov edi, 3
cmp dword [ebx + 0x648530], 2
jne 0x4f639c
mov eax, dword [ebx + 0x64853c]
lea ecx, [ebx + 0x64853c]
push 0
push dword [ebx + 0x64b664]
mov dword [ebx + 0x64b5a8], 0
push dword [ebx + 0x64b660]
call dword [eax + 0x10]
mov eax, dword [ebx + 0x64b660]
mov ecx, dword [ebx + 0x64b664]
mov dword [ebx + 0x64b668], eax
mov dword [ebx + 0x64b66c], ecx
mov dword [ebx + 0x64b5f8], eax
mov dword [ebx + 0x64b5fc], ecx
cmp word [esi + 0x22], 0
je 0x4f63ae
push dword [esi + 0x3c]
call fcn.004fe8b9
add esp, 4
cmp word [esi + 0x20], 0
je 0x4f63c0
push dword [esi + 0x48]
call fcn.004fe8b9
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4f63d0
push eax
call fcn.004fe8b9
add esp, 4
push esi
call fcn.004fe8b9
mov ecx, dword [esp + 0x3c]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f833c
add esp, 0x2c
ret 4