Function at 0x503360
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x2c
mov eax, dword [0x5755c4]
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 0x50354d
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 + 0x64b798]
je 0x5033bf
mov eax, dword [ebp + 0x6496e4]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x540780]
lea ecx, [ebp + 0x6496e4]
call esi
mov eax, dword [esp + 0x10]
push eax
push dword [ebp + 0x64b788]
mov ecx, ebp
mov dword [ebp + 0x64b798], eax
call fcn.004fab90
mov ecx, dword [ebp + 0x6496e4]
mov edi, eax
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x540780]
lea ecx, [ebp + 0x6496e4]
call esi
test al, al
jne 0x5034a8
mov eax, dword [ebp + 0x6496e4]
push 0
push edi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x540780]
lea ecx, [ebp + 0x6496e4]
call esi
test al, al
jne 0x5034a8
lea ebx, [ebx]
cmp dword [ebp + 0x64b750], 0
jne 0x50343d
push edi
mov ecx, 0x5b77e4
call fcn.0046e680
push 0x12
mov ecx, ebp
call fcn.004fc6a0
mov esi, dword [esp + 0x10]
mov ecx, ebp
push esi
call fcn.004f9510
cmp eax, 9
je 0x503533
mov ecx, dword [ebp + 0x6486b0]
cmp ecx, 1
je 0x503462
cmp ecx, 2
jne 0x50346b
cmp eax, 3
je 0x503519
push edi
call fcn.00524aa2
add esp, 4
mov ecx, ebp
push esi
push dword [ebp + 0x64b788]
call fcn.004fab90
mov edi, eax
mov eax, dword [ebp + 0x6496e4]
push 0
push edi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x540780]
lea ecx, [ebp + 0x6496e4]
call esi
test al, al
je 0x503420
test edi, edi
je 0x5034b5
push edi
call fcn.00524aa2
add esp, 4
mov esi, dword [ebp + 0x6496e4]
push 0
push dword [esp + 0x18]
push dword [esp + 0x20]
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x540780]
lea ecx, [ebp + 0x6496e4]
call esi
cmp dword [ebp + 0x6486b0], 2
je 0x50354d
push 0x555ed8
lea edi, [ebp + 0x6496e4]
mov ecx, ebp
push edi
call fcn.004ff720
test eax, eax
jne 0x50354d
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x540780]
mov ecx, edi
call esi
push dword [ebp + 0x64b764]
mov ecx, 0x5b77e4
call fcn.0046e300
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00507712
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.00507712
add esp, 0x2c
ret 4
mov eax, dword [ebp + 0x6496e4]
lea edi, [ebp + 0x6496e4]
push 0x1a
lea ecx, [esp + 0x20]
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x540780]
mov ecx, edi
call esi
cmp eax, 0x1a
je 0x5035a8
cmp dword [ebp + 0x6486b0], 2
je 0x50358e
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x540780]
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.00507712
add esp, 0x2c
ret 4
push 0x68
call fcn.00524aa7
mov esi, eax
add esp, 4
test esi, esi
jne 0x5035ec
cmp dword [ebp + 0x6486b0], 2
je 0x5035d2
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x540780]
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.00507712
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 0x503728
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 + 0x6496e4]
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 0x503737
or word [esi + 0x2e], ax
cmp dword [ebp + 0x6486b0], 2
jne 0x50378f
movzx eax, word [esi + 2]
movzx ecx, al
and eax, 0xff00
cmp eax, 0x2800
jbe 0x50377f
mov eax, dword [ebp + 0x64b764]
mov ecx, 0x5b77e4
push eax
push eax
call fcn.0046e9d0
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00507712
add esp, 0x2c
ret 4
cmp ecx, 0x64
ja 0x503753
mov eax, 0xc8
cmp word [esi + 6], ax
ja 0x503753
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.00524aa7
add esp, 4
mov dword [esi + 0x48], eax
test eax, eax
je 0x5035d2
movzx eax, word [esi + 0x22]
test ax, ax
je 0x5037da
push eax
call fcn.00524aa7
add esp, 4
mov dword [esi + 0x3c], eax
test eax, eax
je 0x5035d2
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 [0x540780]
lea ecx, [ebp + 0x6496e4]
call edi
movzx ecx, word [esi + 0x20]
cmp eax, ecx
jne 0x50358e
movzx edx, word [esi + 0x22]
test dx, dx
je 0x503835
mov ecx, dword [ebp + 0x6496e4]
push edx
push dword [esi + 0x3c]
mov edi, dword [ecx + 0xc]
mov ecx, edi
call dword [0x540780]
lea ecx, [ebp + 0x6496e4]
call edi
movzx ecx, word [esi + 0x22]
cmp eax, ecx
jne 0x50358e
movzx ecx, word [esi + 0x20]
mov eax, dword [esi + 0x48]
push esi
mov byte [ecx + eax], 0
mov ecx, ebp
call fcn.004ff330
mov dword [ebp + str.DSsKk_GgWwOo_], 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 0x503892
mov eax, dword [esi + 0x48]
push eax
mov dword [esi + 0x4c], eax
call fcn.004fb2d0
test eax, eax
jne 0x50388d
push dword [esi + 0x4c]
call fcn.0052b453
add esp, 4
mov dword [esi + 0x48], eax
test eax, eax
jne 0x503898
jmp 0x5035d2
mov dword [esi + 0x48], eax
jmp 0x503898
push esi
call fcn.00500b30
movzx ecx, word [esi]
movzx eax, cl
push eax
shr ecx, 8
push ecx
call fcn.004c9dc0
test al, al
je 0x5038b7
mov eax, dword [esi + 0x48]
push eax
push eax
call dword [sym.imp.USER32.dll_OemToCharA]
cmp dword [ebp + 0x6486b0], 2
jne 0x5038ff
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 0x503917
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 0x503928
push eax
call fcn.00505190
jmp 0x503930
push dword [esi + 0x48]
call fcn.00504f40
mov dword [ebx + 0x54], eax
cmp dword [ebp + 0x6486b0], 3
jne 0x50398f
mov ecx, dword [ebx + 0x48]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x503942
sub ecx, edx
mov word [ebx + 0x20], cx
push dword [esi + 0x48]
mov word [esi + 0x20], cx
call fcn.00524aa2
push dword [ebx + 0x48]
call fcn.0052b453
add esp, 8
mov dword [esi + 0x48], eax
test eax, eax
je 0x5035d2
push dword [esi + 0x4c]
call fcn.00524aa2
mov eax, dword [ebx + 0x4c]
add esp, 4
test eax, eax
je 0x50398c
push eax
call fcn.0052b453
add esp, 4
mov dword [esi + 0x4c], eax
mov eax, dword [ebp + 0x64b7ac]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0x64b7f0]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp + resource.22]
mov dword [ebx + 0x34], eax
cmp dword [ebp + 0x6486b0], 2
je 0x5039d5
movzx eax, word [ebx + 4]
test al, 1
jne 0x5039d5
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 0x5039fc
cmp dword [ebp + str.DSsKk_GgWwOo_], 0
mov dword [esp + 0x10], 0x18
jne 0x5039fc
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 + 0x64b780], ecx
adc dword [ebp + 0x64b784], edi
cmp dword [ebp + 0x6486b0], 2
jne 0x503a3e
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
jmp 0x503a44
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
push 0
push esi
mov ecx, ebp
call fcn.00500590
test eax, eax
je 0x503a6c
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00507712
add esp, 0x2c
ret 4
cmp dword [ebp + 0x6486b0], 2
jne 0x503a8e
test byte [esi + 0x2e], 8
je 0x503a8e
push 0xffffffffffffffff
push 0xfffffffffffffffe
mov ecx, ebp
call fcn.004f9ac0
mov edi, eax
mov dword [esp + 0x10], edi
jmp 0x503aa1
push dword [esi + 0x14]
mov ecx, ebp
push dword [esi + 0x10]
call fcn.004f9ac0
mov edi, eax
mov dword [esp + 0x10], eax
cmp edi, 9
jne 0x503aee
cmp word [esi + 0x22], 0
je 0x503ab8
push dword [esi + 0x3c]
call fcn.00524aa2
add esp, 4
cmp word [esi + 0x20], 0
je 0x503aca
push dword [esi + 0x48]
call fcn.00524aa2
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x503ada
push eax
call fcn.00524aa2
add esp, 4
push esi
call fcn.00524aa2
add esp, 4
mov ecx, ebp
push 9
call fcn.004fc6a0
jmp 0x503af7
cmp edi, 2
je 0x503d2e
cmp dword [ebp + 0x64b734], 0
jne 0x503d2e
cmp dword [ebp + 0x6486b0], 2
jne 0x503b4d
test byte [ebx + 4], 8
je 0x503b5b
cmp dword [ebp + 0x64b738], 0
je 0x503c65
mov eax, dword [ebp + 0x64b73c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x64b740]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x64b744]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x64b748]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x64b74c]
mov dword [esi + 0x1c], eax
test byte [ebx + 4], 8
je 0x503b5b
push esi
mov ecx, ebp
call fcn.00500480
cmp dword [ebp + 0x64b7f8], 1
jne 0x503b95
mov ecx, dword [ebp + 0x64b7a8]
cmp ecx, dword [ebp + 0x64b7ac]
je 0x503b95
push dword [ebp + 0x64b7e0]
lea eax, [ebp + 0x64a70c]
push eax
push ecx
mov ecx, ebp
call fcn.004fa940
push dword [ebp + 0x64b7e0]
call fcn.00524aa2
add esp, 4
cmp dword [ebp + 0x6486b0], 2
jne 0x503cbc
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 0x503c47
inc eax
push eax
call fcn.00524aa7
mov ecx, eax
add esp, 4
mov dword [ebx + 0x40], ecx
test ecx, ecx
je 0x5035d2
movzx eax, word [esi + 0x22]
push eax
push dword [esi + 0x3c]
push ecx
call fcn.0051ff80
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 0x503cf9
cmp word [esi + 0x22], 0
je 0x503c77
push dword [esi + 0x3c]
call fcn.00524aa2
add esp, 4
cmp word [esi + 0x20], 0
je 0x503c89
push dword [esi + 0x48]
call fcn.00524aa2
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x503c99
push eax
call fcn.00524aa2
add esp, 4
push esi
call fcn.00524aa2
add esp, 4
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00507712
add esp, 0x2c
ret 4
cmp word [esi + 0x22], 0
je 0x503cce
push dword [esi + 0x3c]
call fcn.00524aa2
add esp, 4
cmp word [esi + 0x20], 0
je 0x503ce0
push dword [esi + 0x48]
call fcn.00524aa2
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x503cf0
push eax
call fcn.00524aa2
add esp, 4
push esi
call fcn.00524aa2
add esp, 4
cmp dword [ebp + 0x6486b0], 2
jne 0x503d17
cmp edi, 0xb
jne 0x503d17
push dword [ebp + 0x64b764]
mov ecx, 0x5b77e4
call fcn.0046e300
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00507712
add esp, 0x2c
ret 4
test edi, edi
jne 0x503d3a
mov dword [esp + 0x10], 3
cmp dword [ebp + 0x6486b0], 2
jne 0x503d98
mov edi, dword [ebp + 0x6486bc]
push 0
push dword [ebp + 0x64b7ec]
mov dword [ebp + 0x64b734], 0
push dword [ebp + 0x64b7e8]
mov edi, dword [edi + 0x10]
mov ecx, edi
call dword [0x540780]
lea ecx, [ebp + 0x6486bc]
call edi
mov eax, dword [ebp + 0x64b7e8]
mov ecx, dword [ebp + 0x64b7ec]
mov dword [ebp + 0x64b7f0], eax
mov dword [ebp + resource.22], ecx
mov dword [ebp + 0x64b780], eax
mov dword [ebp + 0x64b784], ecx
cmp word [esi + 0x22], 0
je 0x503daa
push dword [esi + 0x3c]
call fcn.00524aa2
add esp, 4
cmp word [esi + 0x20], 0
je 0x503dbc
push dword [esi + 0x48]
call fcn.00524aa2
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x503dcc
push eax
call fcn.00524aa2
add esp, 4
push esi
call fcn.00524aa2
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.00507712
add esp, 0x2c
ret 4