Function at 0x52f990
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x48], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x18], 0
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], 0xa2
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x1c]
mov dword [eax + 0x1c], 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x52fa4d
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 0x18]
and edx, 6
je 0x52f9f9
mov dword [ebp + 0xc], 0
jmp 0x52fa4d
mov dword [ebp - 0x1c], 0
jmp 0x52fa0b
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ecx + 0x14]
jge 0x52fa4d
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
shl ecx, 4
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + ecx]
push ecx
call fcn.0056afc0
add esp, 8
test eax, eax
jne 0x52fa4b
mov edx, dword [ebp - 0x1c]
shl edx, 4
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + edx + 0xc]
mov dword [ebp - 0x34], edx
jmp 0x52fa4d
jmp 0x52fa02
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 0
je 0x52fce9
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x40]
add edx, 8
mov dword [ebp - 0x14], edx
jmp 0x52fa84
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x48
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [edx]
jge 0x52fca1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x14], 0
je 0x52fb49
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 8]
and eax, 0x800
je 0x52fb49
mov dword [ebp - 0x54], 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], 0
jmp 0x52fae0
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
cmp eax, dword [edx]
jge 0x52fb38
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
imul ecx, dword [ebp - 8], 0x18
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + ecx + 0xc]
push eax
call fcn.00530470
add esp, 0x10
test eax, eax
je 0x52fb36
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], 2
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0x1c]
mov cx, word [ebp - 8]
mov word [eax + 0x20], cx
mov dword [ebp - 0x54], 1
jmp 0x52fad7
cmp dword [ebp - 0x54], 0
jne 0x52fb44
cmp dword [ebp + 0x10], 0
jne 0x52fb49
jmp 0x52fa72
cmp dword [ebp + 0xc], 0
je 0x52fb5f
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x48]
cmp eax, dword [ebp - 0x34]
je 0x52fb5f
jmp 0x52fa72
cmp dword [ebp + 0x10], 0
je 0x52fbcd
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0xc], 0
je 0x52fb79
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x58], eax
jmp 0x52fb81
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x74]
push edx
call fcn.0056afc0
add esp, 8
test eax, eax
je 0x52fba0
jmp 0x52fa72
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xc8]
cmp ecx, 2
jl 0x52fbcd
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0xc], 0
je 0x52fbcd
mov eax, dword [ebp + 0x1c]
add eax, 0x2c
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00524640
add esp, 0xc
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x78], 0
jne 0x52fbe8
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ebp - 0x28], eax
jmp 0x52fc0c
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x28]
add edx, 0x10
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 4]
movsx ecx, word [eax + 0x2a]
cmp dword [ebp - 8], ecx
jge 0x52fc9c
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push ecx
call fcn.0056afc0
add esp, 8
test eax, eax
jne 0x52fc97
cmp dword [ebp - 0x10], 1
jne 0x52fc5f
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + 0x24]
and eax, 4
je 0x52fc46
jmp 0x52fbfa
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x34]
push eax
call fcn.00530580
add esp, 8
test eax, eax
je 0x52fc5f
jmp 0x52fbfa
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
movsx ecx, word [eax + 0x28]
cmp dword [ebp - 8], ecx
jne 0x52fc83
mov dword [ebp - 0x5c], 0xffffffff
jmp 0x52fc8a
movsx edx, word [ebp - 8]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp + 0x1c]
mov cx, word [ebp - 0x5c]
mov word [eax + 0x20], cx
jmp 0x52fc9c
jmp 0x52fbfa
jmp 0x52fa72
cmp dword [ebp - 0x18], 0
je 0x52fce9
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x1c], ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp - 0x18]
movzx eax, byte [edx + 0x24]
and eax, 8
je 0x52fcdd
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx + 4]
or edx, 0x100000
mov eax, dword [ebp + 0x1c]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx + 0x2c]
mov eax, dword [edx + 0x48]
mov dword [ebp - 0x34], eax
cmp dword [ebp + 0xc], 0
jne 0x52ff8e
cmp dword [ebp + 0x10], 0
je 0x52ff8e
cmp dword [ebp - 0x20], 0
jne 0x52ff8e
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x78], 0
je 0x52fd82
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x90]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0x7c
je 0x52fd54
mov ecx, dword [ebp + 0x10]
push ecx
push 0x5aa868
call fcn.0056afc0
add esp, 8
test eax, eax
jne 0x52fd54
mov edx, dword [ebp + 0x1c]
mov dword [edx + 0x1c], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
mov dword [ebp - 4], ecx
jmp 0x52fd82
cmp dword [ebp - 0x60], 0x7b
je 0x52fd82
mov edx, dword [ebp + 0x10]
push edx
push 0x5aa864
call fcn.0056afc0
add esp, 8
test eax, eax
jne 0x52fd82
mov eax, dword [ebp + 0x1c]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x78]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0x18]
and ecx, 0x200
je 0x52fdd3
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 8]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x52fdd3
mov ecx, dword [ebp + 0x10]
push ecx
push 0x5aa858
call fcn.0056afc0
add esp, 8
test eax, eax
jne 0x52fdd3
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 0x14]
mov ecx, 0x48
imul edx, ecx, 0
mov eax, dword [eax + edx + 0x18]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x1c]
mov dword [ecx + 0x1c], 2
cmp dword [ebp - 4], 0
je 0x52ff8e
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x48]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ebp - 0x28], eax
jmp 0x52fe13
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x28]
add edx, 0x10
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 4]
movsx ecx, word [eax + 0x2a]
cmp dword [ebp - 0xc], ecx
jge 0x52fe4c
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push ecx
call fcn.0056afc0
add esp, 8
test eax, eax
jne 0x52fe4a
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0x28]
cmp dword [ebp - 0xc], eax
jne 0x52fe48
mov dword [ebp - 0xc], 0xffffffff
jmp 0x52fe4c
jmp 0x52fe01
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x2a]
cmp dword [ebp - 0xc], edx
jl 0x52fe7a
mov eax, dword [ebp + 0x14]
push eax
call fcn.0052aab0
add esp, 4
test eax, eax
je 0x52fe7a
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
and edx, 0x40
jne 0x52fe7a
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 4]
movsx ecx, word [eax + 0x2a]
cmp dword [ebp - 0xc], ecx
jge 0x52ff8e
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x1c]
cmp dword [eax + 0x1c], 2
jne 0x52fef7
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0xc8]
cmp edx, 2
jl 0x52fec8
mov eax, dword [ebp + 0x1c]
mov cx, word [ebp - 0xc]
mov word [eax + 0x20], cx
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 4]
mov dword [edx + 0x2c], eax
mov dword [ebp - 0x3c], 0xa2
jmp 0x52fef2
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x18]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx + 0x1c], eax
mov dword [ebp - 0x3c], 0xab
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 4]
or eax, 0x400000
mov ecx, dword [ebp + 0x1c]
mov dword [ecx + 4], eax
jmp 0x52ff8e
cmp dword [ebp - 0xc], 0
jge 0x52ff06
mov edx, dword [ebp + 0x1c]
mov byte [edx + 1], 0x44
jmp 0x52ff73
mov eax, dword [ebp + 0x1c]
cmp dword [eax + 0x1c], 0
jne 0x52ff42
cmp dword [ebp - 0xc], 0x20
jl 0x52ff1e
mov dword [ebp - 0x68], 0xffffffff
jmp 0x52ff2b
mov edx, 1
mov ecx, dword [ebp - 0xc]
shl edx, cl
mov dword [ebp - 0x68], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x88]
or ecx, dword [ebp - 0x68]
mov edx, dword [ebp + 8]
mov dword [edx + 0x88], ecx
jmp 0x52ff73
cmp dword [ebp - 0xc], 0x20
jl 0x52ff51
mov dword [ebp - 0x6c], 0xffffffff
jmp 0x52ff5e
mov eax, 1
mov ecx, dword [ebp - 0xc]
shl eax, cl
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x8c]
or edx, dword [ebp - 0x6c]
mov eax, dword [ebp + 8]
mov dword [eax + 0x8c], edx
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 4]
mov dword [ecx + 0x2c], edx
mov eax, dword [ebp + 0x1c]
mov cx, word [ebp - 0xc]
mov word [eax + 0x20], cx
mov dword [ebp - 0x3c], 0x4d
cmp dword [ebp - 0x10], 0
jne 0x52ffe1
cmp dword [ebp - 0x20], 1
jne 0x52ffe1
cmp dword [ebp - 0x18], 0
je 0x52ffe1
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x18]
and eax, 0x20
jne 0x52ffe1
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.0052aab0
add esp, 4
test eax, eax
je 0x52ffe1
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0x24]
and ecx, 0x40
jne 0x52ffe1
mov dword [ebp - 0x10], 1
or edx, 0xffffffff
mov eax, dword [ebp + 0x1c]
mov word [eax + 0x20], dx
mov ecx, dword [ebp + 0x1c]
mov byte [ecx + 1], 0x44
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x18]
and eax, 0x80
je 0x530162
cmp dword [ebp - 0x10], 0
jne 0x530162
cmp dword [ebp + 0x10], 0
jne 0x530162
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 8], 0
jmp 0x530021
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx]
jge 0x530162
imul eax, dword [ebp - 8], 0x18
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + eax + 8]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0
je 0x53015d
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0056afc0
add esp, 8
test eax, eax
jne 0x53015d
imul edx, dword [ebp - 8], 0x18
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + edx + 4]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x18]
and eax, 1
jne 0x5300a2
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 4]
and edx, 0x10
je 0x5300a2
mov eax, dword [ebp - 0x38]
push eax
push 0x5aa838
mov ecx, dword [ebp + 8]
push ecx
call fcn.0056b200
add esp, 0xc
mov eax, 2
jmp 0x530399
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x18]
and eax, 0x4000
jne 0x5300dc
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 4]
and edx, 0x8000
je 0x5300dc
mov eax, dword [ebp - 0x38]
push eax
push 0x5aa810
mov ecx, dword [ebp + 8]
push ecx
call fcn.0056b200
add esp, 0xc
mov eax, 2
jmp 0x530399
mov edx, dword [ebp - 0x44]
push edx
call fcn.0052d560
add esp, 4
cmp eax, 1
je 0x530108
push 0x5aa7fc
mov eax, dword [ebp + 8]
push eax
call fcn.0056b200
add esp, 8
mov eax, 2
jmp 0x530399
mov ecx, dword [ebp - 0x48]
push ecx
push 0x5ad390
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005305e0
add esp, 0x18
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xc8]
cmp ecx, 2
jl 0x530158
mov edx, dword [ebp + 0x1c]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00524640
add esp, 0xc
jmp 0x530338
jmp 0x530018
cmp dword [ebp - 0x10], 0
je 0x53016a
jmp 0x530186
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 0xc]
mov dword [ebp + 0x18], edx
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
cmp dword [ebp + 0x18], 0
jne 0x52fa4d
cmp dword [ebp - 0x10], 0
jne 0x5301f8
cmp dword [ebp + 0x10], 0
jne 0x5301f8
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx + 4]
and edx, 0x40
je 0x5301de
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.005303a0
add esp, 8
test eax, eax
je 0x5301de
mov edx, dword [ebp + 0x14]
push edx
push 0x5aa7d8
push 0x1c
call fcn.0056c670
add esp, 0xc
mov eax, dword [ebp + 0x1c]
mov byte [eax], 0x71
mov ecx, dword [ebp + 0x1c]
mov dword [ecx + 0x2c], 0
mov eax, 1
jmp 0x530399
mov edx, dword [ebp + 0x1c]
push edx
call fcn.0052b2e0
add esp, 4
test eax, eax
je 0x5301f8
mov eax, 1
jmp 0x530399
cmp dword [ebp - 0x10], 1
je 0x53029b
cmp dword [ebp - 0x10], 0
jne 0x530211
mov dword [ebp - 0x70], 0x5aa7c8
jmp 0x530218
mov dword [ebp - 0x70], 0x5aa7b0
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x4c], eax
cmp dword [ebp + 0xc], 0
je 0x530247
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
push 0x5aa7a0
mov edx, dword [ebp + 8]
push edx
call fcn.0056b200
add esp, 0x18
jmp 0x530285
cmp dword [ebp + 0x10], 0
je 0x53026c
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 0x5aa794
mov eax, dword [ebp + 8]
push eax
call fcn.0056b200
add esp, 0x14
jmp 0x530285
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 0x5aa78c
mov eax, dword [ebp + 8]
push eax
call fcn.0056b200
add esp, 0x10
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x11], 1
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x14]
add eax, 1
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp + 0x1c]
movsx eax, word [edx + 0x20]
test eax, eax
jl 0x5302e4
cmp dword [ebp - 0x18], 0
je 0x5302e4
mov ecx, dword [ebp + 0x1c]
movsx edx, word [ecx + 0x20]
mov dword [ebp - 0x50], edx
cmp dword [ebp - 0x50], 0x40
jl 0x5302c3
mov dword [ebp - 0x50], 0x3f
mov eax, 1
xor edx, edx
mov ecx, dword [ebp - 0x50]
call fcn.0049b2b0
mov ecx, dword [ebp - 0x18]
or eax, dword [ecx + 0x38]
or edx, dword [ecx + 0x3c]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], edx
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0052c6d0
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [edx + 0xc], 0
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.0052c6d0
add esp, 8
mov eax, dword [ebp + 0x1c]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp + 0x1c]
mov dl, byte [ebp - 0x3c]
mov byte [ecx], dl
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 4]
or ecx, 0x800000
mov edx, dword [ebp + 0x1c]
mov dword [edx + 4], ecx
cmp dword [ebp - 0x10], 1
jne 0x530394
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 4]
and ecx, 0x400000
jne 0x530367
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00520340
add esp, 0x10
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x10]
add edx, 1
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x10], edx
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp + 0x18]
jne 0x530380
jmp 0x53038b
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x24], eax
jmp 0x530367
mov eax, 1
jmp 0x530399
mov eax, 2
mov esp, ebp
pop ebp
ret