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

Disassembly:
sub esp, 0x44
mov eax, dword [esp + 0x48]
push ebx
push ebp
push esi
mov ecx, dword [eax + 0x70]
mov eax, ecx
cdq
idiv dword [esp + 0x5c]
push edi
mov edi, eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x20], edi
lea esi, [eax + ecx*4]
mov eax, dword [esp + 0x60]
imul eax, dword [esp + 0x64]
lea ebx, [edx + 0x18]
mov dword [esp + 0x28], ebx
mov ebp, esi
mov ebx, dword [esp + 0x5c]
mov ecx, ebx
mov dword [esp + 0x64], 0
mov dword [esp + 0x10], esi
lea eax, [ebx + eax*4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x60]
imul eax, dword [esp + 0x68]
cmp dword [edx + 0x38], 0
lea ebx, [ecx + eax*4]
mov eax, dword [edx + 0x78]
mov dword [esp + 0x48], ebx
lea ecx, [eax + 0x118]
mov dword [esp + 0x44], ecx
mov ecx, 0x1000000
cmovne ecx, edi
test eax, eax
mov eax, dword [edx + 0x94]
mov dword [esp + 0x30], ecx
lea ecx, [edx + 0x7c]
cmovle ecx, dword [esp + 0x64]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x38], eax
cmp esi, ebx
jae 0x539bf6
mov ecx, dword [edx + 0x98]
test ecx, ecx
jne 0x539bbc
xor eax, eax
imul eax, eax, 0x224
add eax, dword [edx + 0xa8]
mov dword [esp + 0x1c], eax
jmp 0x539bfe
mov eax, dword [esp + 0x58]
mov edx, edi
sar edx, cl
imul edx, dword [eax + 0x9c]
mov eax, dword [esp + 0x14]
sar eax, cl
add edx, eax
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0xa0]
mov eax, dword [eax + edx*4]
mov edx, dword [esp + 0x58]
imul eax, eax, 0x224
add eax, dword [edx + 0xa8]
mov dword [esp + 0x1c], eax
jmp 0x539bfe
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x6c]
cmp esi, ebx
lea ebx, [edx + 0x18]
jae 0x53a4bb
nop dword [eax]
cmp edi, dword [esp + 0x30]
jl 0x539c55
movups xmm0, xmmword [ebx]
mov eax, esi
sub eax, dword [esp + 0x5c]
movups xmmword [edx + 0x40], xmm0
sar eax, 2
cmp dword [edx + 0x78], 0
movups xmm0, xmmword [ebx + 0x10]
mov dword [edx + 0x60], eax
movups xmmword [edx + 0x50], xmm0
jle 0x539c4e
lea eax, [edx + 0x88]
push eax
lea eax, [edx + 0x7c]
push eax
call fcn.00545d30
mov edx, dword [esp + 0x60]
add esp, 8
lea eax, [edi + 8]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
test dword [esp + 0x38], eax
jne 0x539ca5
mov ecx, dword [edx + 0x98]
test ecx, ecx
jne 0x539c6d
xor eax, eax
jmp 0x539c95
mov eax, dword [esp + 0x58]
mov edx, edi
sar edx, cl
imul edx, dword [eax + 0x9c]
mov eax, dword [esp + 0x14]
sar eax, cl
add edx, eax
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0xa0]
mov eax, dword [eax + edx*4]
mov edx, dword [esp + 0x58]
imul eax, eax, 0x224
add eax, dword [edx + 0xa8]
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0x1c], 0
je 0x539cb9
mov eax, dword [edx + 0x18]
mov dword [esi], eax
jmp 0x539df1
mov esi, dword [ebx + 0x14]
mov dword [esp + 0x64], esi
cmp esi, 0x20
jl 0x539cd5
push ebx
call fcn.0053f1a0
mov esi, dword [ebx + 0x14]
add esp, 4
mov dword [esp + 0x64], esi
mov eax, dword [ebx]
mov ecx, esi
mov edx, dword [ebx + 4]
and ecx, 0x3f
call fcn.005327c0
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0x20], 0
je 0x539d4c
and eax, 0x3f
mov ecx, dword [edx + eax*8 + 0x24]
mov esi, dword [edx + eax*8 + 0x28]
mov eax, dword [esp + 0x64]
cmp ecx, 0x100
jge 0x539d14
add eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x14], eax
mov dword [ecx], esi
xor esi, esi
jmp 0x539d22
add eax, 0xffffff00
add eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x14], eax
cmp dword [ebx + 0x18], 0
jne 0x53a4af
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebx + 0xc]
jne 0x539d3e
cmp dword [ebx + 0x14], 0x40
jg 0x53a4af
test esi, esi
je 0x539ded
mov edx, dword [esp + 0x58]
jmp 0x539db9
movzx ecx, al
mov eax, dword [edx]
lea edx, [eax + ecx*4]
mov cl, byte [edx]
movzx eax, cl
sub eax, 8
mov dword [esp + 0x34], edx
mov dword [esp + 0x64], eax
test eax, eax
jle 0x539d9b
mov eax, dword [ebx]
add esi, 8
mov edx, dword [ebx + 4]
mov ecx, esi
and ecx, 0x3f
mov dword [ebx + 0x14], esi
call fcn.005327c0
mov ecx, dword [esp + 0x64]
mov edx, 1
shl edx, cl
dec edx
and eax, edx
mov edx, dword [esp + 0x34]
movzx ecx, word [edx + 2]
add eax, ecx
mov cl, byte [edx + eax*4]
lea edx, [edx + eax*4]
movzx eax, cl
add eax, esi
mov dword [ebx + 0x14], eax
movzx esi, word [edx + 2]
mov edx, dword [esp + 0x58]
cmp dword [edx + 0x30], 0
jne 0x53a4b3
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebx + 0xc]
jne 0x539dcb
cmp dword [ebx + 0x14], 0x40
jg 0x53a4b3
cmp esi, 0x100
jge 0x53a0b9
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0x14], 0
je 0x539eae
shl esi, 8
or esi, dword [edx + 0x18]
mov dword [ecx], esi
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add esi, 4
inc eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x60]
jl 0x539e9b
mov edx, dword [esp + 0x6c]
inc edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], edi
test edx, edx
je 0x539e4a
cmp edi, dword [esp + 0x68]
jg 0x539e4a
mov eax, edi
and eax, 0x8000000f
jns 0x539e3a
dec eax
or eax, 0xfffffff0
add eax, 1
jne 0x539e4a
push edi
push dword [esp + 0x5c]
call edx
mov ecx, dword [esp + 0x20]
add esp, 8
test ecx, ecx
je 0x539e9b
mov eax, esi
xor edx, edx
sub eax, ebp
add eax, 3
shr eax, 2
cmp ebp, esi
cmova eax, edx
mov dword [esp + 0x64], eax
test eax, eax
je 0x539e9b
mov edi, eax
mov ebx, edx
nop dword [eax + eax]
mov esi, dword [ebp]
inc ebx
mov ecx, dword [ecx + 4]
add ebp, 4
imul edx, esi, 0x1e35a7bd
shr edx, cl
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [eax + edx*4], esi
cmp ebx, edi
jb 0x539e70
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x58]
cmp esi, dword [esp + 0x48]
jb 0x539c10
jmp 0x53a4b7
mov eax, dword [ebx + 0x14]
mov ecx, eax
mov edx, dword [ebx + 4]
and ecx, 0x3f
mov dword [esp + 0x34], eax
mov eax, dword [ebx]
call fcn.005327c0
movzx ecx, al
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
lea ecx, [eax + ecx*4]
mov al, byte [ecx]
movzx edx, al
sub edx, 8
mov dword [esp + 0x64], ecx
mov dword [esp + 0x2c], edx
test edx, edx
jle 0x539f26
mov ecx, dword [esp + 0x34]
mov eax, dword [ebx]
add ecx, 8
mov edx, dword [ebx + 4]
mov dword [ebx + 0x14], ecx
and ecx, 0x3f
call fcn.005327c0
mov ecx, dword [esp + 0x2c]
mov edx, 1
shl edx, cl
mov ecx, dword [esp + 0x64]
dec edx
and eax, edx
movzx ecx, word [ecx + 2]
add eax, ecx
mov ecx, dword [esp + 0x64]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x58]
mov edx, dword [eax + 0x2c]
mov al, byte [ecx]
jmp 0x539f29
mov edx, dword [ebx + 0x14]
movzx eax, al
add edx, eax
mov dword [ebx + 0x14], edx
movzx eax, word [ecx + 2]
mov dword [esp + 0x24], eax
mov eax, dword [ebx]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x50], eax
cmp edx, 0x20
jl 0x539f64
push ebx
call fcn.0053f1a0
mov eax, dword [ebx]
add esp, 4
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x50], eax
movq xmm1, qword [esp + 0x4c]
mov eax, edx
and eax, 0x3f
movd xmm0, eax
psrlq xmm1, xmm0
movd eax, xmm1
movzx ecx, al
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
lea ecx, [eax + ecx*4]
mov al, byte [ecx]
mov byte [esp + 0x64], al
movzx eax, al
sub eax, 8
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], eax
test eax, eax
jle 0x539fe1
movq xmm1, qword [esp + 0x4c]
lea eax, [edx + 8]
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x14], eax
and eax, 0x3f
movd xmm0, eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x2c]
dec eax
psrlq xmm1, xmm0
movd edx, xmm1
and edx, eax
movzx eax, word [ecx + 2]
add edx, eax
mov eax, dword [esp + 0x58]
lea ecx, [ecx + edx*4]
mov edx, dword [eax + 0x2c]
mov al, byte [ecx]
jmp 0x539fe5
mov al, byte [esp + 0x64]
movq xmm1, qword [esp + 0x4c]
movzx eax, al
add edx, eax
mov dword [ebx + 0x14], edx
movzx eax, word [ecx + 2]
mov dword [esp + 0x40], eax
mov eax, edx
and eax, 0x3f
movd xmm0, eax
psrlq xmm1, xmm0
movd eax, xmm1
movzx ecx, al
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0xc]
lea ecx, [eax + ecx*4]
mov al, byte [ecx]
movzx edi, al
sub edi, 8
mov dword [esp + 0x34], ecx
mov dword [esp + 0x64], edi
test edi, edi
mov edi, dword [esp + 0x20]
jle 0x53a074
movq xmm1, qword [esp + 0x4c]
add edx, 8
mov ecx, dword [esp + 0x64]
mov eax, edx
and eax, 0x3f
mov dword [ebx + 0x14], edx
mov dword [esp + 0x2c], edx
movd xmm0, eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x34]
dec eax
psrlq xmm1, xmm0
movd edx, xmm1
and edx, eax
movzx eax, word [ecx + 2]
add edx, eax
mov al, byte [ecx + edx*4]
lea ecx, [ecx + edx*4]
mov edx, dword [esp + 0x2c]
movzx eax, al
add edx, eax
cmp dword [ebx + 0x18], 0
mov dword [ebx + 0x14], edx
movzx ecx, word [ecx + 2]
jne 0x53a4af
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebx + 0xc]
jne 0x53a09b
cmp edx, 0x40
jg 0x53a4af
shl ecx, 8
or ecx, dword [esp + 0x24]
shl ecx, 8
or ecx, esi
mov esi, dword [esp + 0x10]
shl ecx, 8
or ecx, dword [esp + 0x40]
mov dword [esi], ecx
jmp 0x539df1
cmp esi, 0x118
jge 0x53a427
lea edx, [esi - 0x100]
mov dword [esp + 0x64], edx
cmp edx, 4
jl 0x53a0f3
lea esi, [edx - 2]
sar esi, 1
push esi
push ebx
call fcn.0053f2a0
mov edx, dword [esp + 0x6c]
mov ecx, esi
and edx, 1
add esp, 8
add edx, 2
shl edx, cl
add edx, eax
lea eax, [edx + 1]
mov edx, dword [ebx + 4]
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0x14]
mov ecx, eax
mov dword [esp + 0x40], eax
and ecx, 0x3f
mov eax, dword [ebx]
call fcn.005327c0
movzx ecx, al
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
lea esi, [eax + ecx*4]
mov al, byte [esi]
movzx ecx, al
sub ecx, 8
mov dword [esp + 0x34], ecx
test ecx, ecx
jle 0x53a166
mov ecx, dword [esp + 0x40]
mov eax, dword [ebx]
add ecx, 8
mov edx, dword [ebx + 4]
mov dword [ebx + 0x14], ecx
and ecx, 0x3f
call fcn.005327c0
mov ecx, dword [esp + 0x34]
mov edx, 1
shl edx, cl
movzx ecx, word [esi + 2]
dec edx
and eax, edx
add eax, ecx
lea esi, [esi + eax*4]
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x2c]
mov al, byte [esi]
jmp 0x53a169
mov ecx, dword [ebx + 0x14]
movzx eax, al
add eax, ecx
mov dword [ebx + 0x14], eax
movzx edx, word [esi + 2]
mov dword [esp + 0x2c], edx
cmp eax, 0x20
jl 0x53a18b
push ebx
call fcn.0053f1a0
mov edx, dword [esp + 0x30]
add esp, 4
cmp edx, 4
jb 0x53a1af
lea esi, [edx - 2]
sar esi, 1
push esi
push ebx
call fcn.0053f2a0
mov edx, dword [esp + 0x34]
mov ecx, esi
and edx, 1
add esp, 8
add edx, 2
shl edx, cl
add edx, eax
inc edx
cmp edx, 0x78
jle 0x53a1ba
lea esi, [edx - 0x78]
jmp 0x53a1dd
movzx eax, byte [edx + 0x591117]
mov esi, 1
mov ecx, eax
and eax, 0xf
shr ecx, 4
imul ecx, dword [esp + 0x60]
sub ecx, eax
add ecx, 8
cmp ecx, esi
cmovge esi, ecx
cmp dword [ebx + 0x18], 0
jne 0x53a4af
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebx + 0xc]
jne 0x53a1f9
cmp dword [ebx + 0x14], 0x40
jg 0x53a4af
mov ecx, dword [esp + 0x10]
mov eax, ecx
sub eax, dword [esp + 0x5c]
sar eax, 2
cmp eax, esi
jl 0x53a565
mov eax, dword [esp + 0x3c]
sub eax, ecx
sar eax, 2
cmp eax, dword [esp + 0x64]
jl 0x53a565
lea eax, [esi*4]
mov edx, ecx
sub edx, eax
mov eax, dword [esp + 0x64]
cmp esi, 2
jg 0x53a360
cmp eax, 4
jl 0x53a360
test cl, 3
jne 0x53a360
mov eax, dword [edx]
mov dword [esp + 0x24], eax
cmp esi, 1
jne 0x53a25c
xor esi, esi
or esi, eax
jmp 0x53a25f
mov esi, dword [edx + 4]
mov edi, dword [esp + 0x64]
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x2c], ecx
test cl, 4
je 0x53a295
mov eax, dword [edx]
add edx, 4
mov dword [ecx], eax
lea eax, [ecx + 4]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x2c], eax
mov eax, esi
xor esi, esi
or esi, dword [esp + 0x24]
dec ecx
mov dword [esp + 0x34], ecx
jmp 0x53a299
mov ecx, dword [esp + 0x64]
sar ecx, 1
mov dword [esp + 0x24], 0
test ecx, ecx
jle 0x53a2c9
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x24], ecx
lea ecx, [ecx*8 - 8]
shr ecx, 2
mov dword [edi + 4], esi
mov esi, edi
mov dword [edi], eax
add edi, 8
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x20]
test byte [esp + 0x34], 1
je 0x53a2de
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov eax, dword [edx + esi*8]
mov dword [ecx + esi*8], eax
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea esi, [esi + eax*4]
mov edx, dword [esp + 0x60]
add ecx, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ecx
cmp ecx, edx
jl 0x53a346
mov esi, dword [esp + 0x58]
sub ecx, edx
inc edi
cmp dword [esp + 0x6c], 0
mov dword [esp + 0x14], ecx
je 0x53a33a
cmp edi, dword [esp + 0x68]
jg 0x53a33a
mov eax, edi
and eax, 0x8000000f
jns 0x53a327
dec eax
or eax, 0xfffffff0
add eax, 1
jne 0x53a33a
push edi
push esi
call dword [esp + 0x74]
mov ecx, dword [esp + 0x1c]
add esp, 8
mov edx, dword [esp + 0x60]
cmp ecx, edx
jge 0x53a303
mov esi, dword [esp + 0x10]
mov dword [esp + 0x20], edi
test dword [esp + 0x38], ecx
je 0x53a3d6
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x98]
test ecx, ecx
jne 0x53a3a2
jmp 0x53a3c6
cmp esi, eax
jl 0x53a377
shl eax, 2
push eax
push edx
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x53a2de
test eax, eax
jle 0x53a2e2
mov esi, dword [esp + 0x10]
mov ebx, eax
sub edx, esi
mov eax, dword [edx + ecx]
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
sub ebx, 1
jne 0x53a387
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x64]
jmp 0x53a2e6
mov edx, edi
sar edx, cl
imul edx, dword [eax + 0x9c]
mov eax, dword [esp + 0x14]
sar eax, cl
add edx, eax
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0xa0]
mov ecx, dword [eax + edx*4]
mov eax, dword [esp + 0x58]
imul ecx, ecx, 0x224
add ecx, dword [eax + 0xa8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x539e9b
mov eax, esi
xor edx, edx
sub eax, ebp
add eax, 3
shr eax, 2
cmp ebp, esi
cmova eax, edx
mov dword [esp + 0x64], eax
test eax, eax
je 0x539e9b
mov edi, eax
mov ebx, edx
mov esi, dword [ebp]
inc ebx
mov ecx, dword [ecx + 4]
add ebp, 4
imul edx, esi, 0x1e35a7bd
shr edx, cl
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [eax + edx*4], esi
cmp ebx, edi
jb 0x53a403
jmp 0x539e8f
cmp esi, dword [esp + 0x44]
jge 0x53a569
lea eax, [esi - 0x118]
xor ecx, ecx
mov esi, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov eax, esi
sub eax, ebp
add eax, 3
shr eax, 2
cmp ebp, esi
cmova eax, ecx
mov dword [esp + 0x64], eax
test eax, eax
je 0x53a49b
mov edi, ecx
mov ebx, eax
mov ecx, dword [esp + 0x18]
mov esi, dword [ebp]
inc edi
mov ecx, dword [ecx + 4]
add ebp, 4
imul edx, esi, 0x1e35a7bd
shr edx, cl
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [eax + edx*4], esi
cmp edi, ebx
jb 0x53a460
mov eax, dword [ecx]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov eax, dword [eax + edx*4]
mov dword [esi], eax
jmp 0x539df5
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
mov eax, dword [ecx]
mov eax, dword [eax + edx*4]
mov dword [esi], eax
jmp 0x539df5
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x6c]
cmp dword [ebx + 0x18], 0
jne 0x53a4d3
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebx + 0xc]
jne 0x53a4cf
cmp dword [ebx + 0x14], 0x40
jg 0x53a4d3
xor eax, eax
jmp 0x53a4d8
mov eax, 1
mov dword [ebx + 0x18], eax
cmp dword [edx + 0x38], 0
je 0x53a52c
test eax, eax
je 0x53a530
cmp esi, dword [esp + 0x3c]
jae 0x53a52c
cmp dword [edx + 0x78], 0
movups xmm0, xmmword [edx + 0x40]
mov eax, dword [edx + 0x60]
mov dword [edx], 5
movups xmmword [ebx], xmm0
mov dword [edx + 0x70], eax
movups xmm0, xmmword [edx + 0x50]
movups xmmword [ebx + 0x10], xmm0
jle 0x53a558
lea eax, [edx + 0x7c]
push eax
lea eax, [edx + 0x88]
push eax
call fcn.00545d30
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
test eax, eax
jne 0x53a569
test ecx, ecx
je 0x53a548
cmp edi, dword [esp + 0x68]
cmovg edi, dword [esp + 0x68]
push edi
push edx
call ecx
mov edx, dword [esp + 0x60]
add esp, 8
sub esi, dword [esp + 0x5c]
sar esi, 2
mov dword [edx], 0
mov dword [edx + 0x70], esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret
mov edx, dword [esp + 0x58]
mov eax, dword [edx]
test eax, eax
je 0x53a574
cmp eax, 5
jne 0x53a57a
mov dword [edx], 3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret