Function at 0x52fb50
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 0x52fc0d
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 0x18]
and edx, 6
je 0x52fbb9
mov dword [ebp + 0xc], 0
jmp 0x52fc0d
mov dword [ebp - 0x1c], 0
jmp 0x52fbcb
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 0x52fc0d
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.0056b180
add esp, 8
test eax, eax
jne 0x52fc0b
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 0x52fc0d
jmp 0x52fbc2
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 0
je 0x52fea9
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x40]
add edx, 8
mov dword [ebp - 0x14], edx
jmp 0x52fc44
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 0x52fe61
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 0x52fd09
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 8]
and eax, 0x800
je 0x52fd09
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 0x52fca0
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 0x52fcf8
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.00530630
add esp, 0x10
test eax, eax
je 0x52fcf6
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 0x52fc97
cmp dword [ebp - 0x54], 0
jne 0x52fd04
cmp dword [ebp + 0x10], 0
jne 0x52fd09
jmp 0x52fc32
cmp dword [ebp + 0xc], 0
je 0x52fd1f
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x48]
cmp eax, dword [ebp - 0x34]
je 0x52fd1f
jmp 0x52fc32
cmp dword [ebp + 0x10], 0
je 0x52fd8d
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0xc], 0
je 0x52fd39
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x58], eax
jmp 0x52fd41
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.0056b180
add esp, 8
test eax, eax
je 0x52fd60
jmp 0x52fc32
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xc8]
cmp ecx, 2
jl 0x52fd8d
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0xc], 0
je 0x52fd8d
mov eax, dword [ebp + 0x1c]
add eax, 0x2c
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00524800
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 0x52fda8
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 0x52fdcc
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 0x52fe5c
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push ecx
call fcn.0056b180
add esp, 8
test eax, eax
jne 0x52fe57
cmp dword [ebp - 0x10], 1
jne 0x52fe1f
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + 0x24]
and eax, 4
je 0x52fe06
jmp 0x52fdba
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x34]
push eax
call fcn.00530740
add esp, 8
test eax, eax
je 0x52fe1f
jmp 0x52fdba
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 0x52fe43
mov dword [ebp - 0x5c], 0xffffffff
jmp 0x52fe4a
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 0x52fe5c
jmp 0x52fdba
jmp 0x52fc32
cmp dword [ebp - 0x18], 0
je 0x52fea9
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 0x52fe9d
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 0x53014e
cmp dword [ebp + 0x10], 0
je 0x53014e
cmp dword [ebp - 0x20], 0
jne 0x53014e
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x78], 0
je 0x52ff42
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x90]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0x7c
je 0x52ff14
mov ecx, dword [ebp + 0x10]
push ecx
push 0x5a9870
call fcn.0056b180
add esp, 8
test eax, eax
jne 0x52ff14
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 0x52ff42
cmp dword [ebp - 0x60], 0x7b
je 0x52ff42
mov edx, dword [ebp + 0x10]
push edx
push str.virtual_table
call fcn.0056b180
add esp, 8
test eax, eax
jne 0x52ff42
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 0x52ff93
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 8]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x52ff93
mov ecx, dword [ebp + 0x10]
push ecx
push 0x5a9860
call fcn.0056b180
add esp, 8
test eax, eax
jne 0x52ff93
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 0x53014e
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 0x52ffd3
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 0x53000c
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push ecx
call fcn.0056b180
add esp, 8
test eax, eax
jne 0x53000a
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0x28]
cmp dword [ebp - 0xc], eax
jne 0x530008
mov dword [ebp - 0xc], 0xffffffff
jmp 0x53000c
jmp 0x52ffc1
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0x2a]
cmp dword [ebp - 0xc], edx
jl 0x53003a
mov eax, dword [ebp + 0x14]
push eax
call fcn.0052ac70
add esp, 4
test eax, eax
je 0x53003a
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
and edx, 0x40
jne 0x53003a
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 4]
movsx ecx, word [eax + 0x2a]
cmp dword [ebp - 0xc], ecx
jge 0x53014e
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x1c]
cmp dword [eax + 0x1c], 2
jne 0x5300b7
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0xc8]
cmp edx, 2
jl 0x530088
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 0x5300b2
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 0x53014e
cmp dword [ebp - 0xc], 0
jge 0x5300c6
mov edx, dword [ebp + 0x1c]
mov byte [edx + 1], 0x44
jmp 0x530133
mov eax, dword [ebp + 0x1c]
cmp dword [eax + 0x1c], 0
jne 0x530102
cmp dword [ebp - 0xc], 0x20
jl 0x5300de
mov dword [ebp - 0x68], 0xffffffff
jmp 0x5300eb
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 0x530133
cmp dword [ebp - 0xc], 0x20
jl 0x530111
mov dword [ebp - 0x6c], 0xffffffff
jmp 0x53011e
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 0x5301a1
cmp dword [ebp - 0x20], 1
jne 0x5301a1
cmp dword [ebp - 0x18], 0
je 0x5301a1
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x18]
and eax, 0x20
jne 0x5301a1
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.0052ac70
add esp, 4
test eax, eax
je 0x5301a1
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0x24]
and ecx, 0x40
jne 0x5301a1
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 0x530322
cmp dword [ebp - 0x10], 0
jne 0x530322
cmp dword [ebp + 0x10], 0
jne 0x530322
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 8], 0
jmp 0x5301e1
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 0x530322
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 0x53031d
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0056b180
add esp, 8
test eax, eax
jne 0x53031d
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 0x530262
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 4]
and edx, 0x10
je 0x530262
mov eax, dword [ebp - 0x38]
push eax
push 0x5a9840
mov ecx, dword [ebp + 8]
push ecx
call fcn.0056b3c0
add esp, 0xc
mov eax, 2
jmp 0x530559
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x18]
and eax, 0x4000
jne 0x53029c
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 4]
and edx, 0x8000
je 0x53029c
mov eax, dword [ebp - 0x38]
push eax
push 0x5a9818
mov ecx, dword [ebp + 8]
push ecx
call fcn.0056b3c0
add esp, 0xc
mov eax, 2
jmp 0x530559
mov edx, dword [ebp - 0x44]
push edx
call fcn.0052d720
add esp, 4
cmp eax, 1
je 0x5302c8
push 0x5a9804
mov eax, dword [ebp + 8]
push eax
call fcn.0056b3c0
add esp, 8
mov eax, 2
jmp 0x530559
mov ecx, dword [ebp - 0x48]
push ecx
push 0x5ac3bc
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.005307a0
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 0x530318
mov edx, dword [ebp + 0x1c]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00524800
add esp, 0xc
jmp 0x5304f8
jmp 0x5301d8
cmp dword [ebp - 0x10], 0
je 0x53032a
jmp 0x530346
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 0x52fc0d
cmp dword [ebp - 0x10], 0
jne 0x5303b8
cmp dword [ebp + 0x10], 0
jne 0x5303b8
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx + 4]
and edx, 0x40
je 0x53039e
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00530560
add esp, 8
test eax, eax
je 0x53039e
mov edx, dword [ebp + 0x14]
push edx
push 0x5a97e0
push 0x1c
call fcn.0056c830
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 0x530559
mov edx, dword [ebp + 0x1c]
push edx
call fcn.0052b4a0
add esp, 4
test eax, eax
je 0x5303b8
mov eax, 1
jmp 0x530559
cmp dword [ebp - 0x10], 1
je 0x53045b
cmp dword [ebp - 0x10], 0
jne 0x5303d1
mov dword [ebp - 0x70], 0x5a97d0
jmp 0x5303d8
mov dword [ebp - 0x70], 0x5a97b8
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x4c], eax
cmp dword [ebp + 0xc], 0
je 0x530407
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 0x5a97a8
mov edx, dword [ebp + 8]
push edx
call fcn.0056b3c0
add esp, 0x18
jmp 0x530445
cmp dword [ebp + 0x10], 0
je 0x53042c
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 0x5a979c
mov eax, dword [ebp + 8]
push eax
call fcn.0056b3c0
add esp, 0x14
jmp 0x530445
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 0x5a9794
mov eax, dword [ebp + 8]
push eax
call fcn.0056b3c0
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 0x5304a4
cmp dword [ebp - 0x18], 0
je 0x5304a4
mov ecx, dword [ebp + 0x1c]
movsx edx, word [ecx + 0x20]
mov dword [ebp - 0x50], edx
cmp dword [ebp - 0x50], 0x40
jl 0x530483
mov dword [ebp - 0x50], 0x3f
mov eax, 1
xor edx, edx
mov ecx, dword [ebp - 0x50]
call fcn.0049b8d0
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.0052c890
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.0052c890
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 0x530554
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 4]
and ecx, 0x400000
jne 0x530527
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.00520500
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 0x530540
jmp 0x53054b
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x24], eax
jmp 0x530527
mov eax, 1
jmp 0x530559
mov eax, 2
mov esp, ebp
pop ebp
ret