Function at 0x578290
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 0x578386
mov ecx, dword [edx + 0x98]
test ecx, ecx
jne 0x57834c
xor eax, eax
imul eax, eax, 0x224
add eax, dword [edx + 0xa8]
mov dword [esp + 0x1c], eax
jmp 0x57838e
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 0x57838e
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x6c]
cmp esi, ebx
lea ebx, [edx + 0x18]
jae 0x578c4b
nop dword [eax]
cmp edi, dword [esp + 0x30]
jl 0x5783e5
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 0x5783de
lea eax, [edx + 0x88]
push eax
lea eax, [edx + 0x7c]
push eax
call fcn.00585890
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 0x578435
mov ecx, dword [edx + 0x98]
test ecx, ecx
jne 0x5783fd
xor eax, eax
jmp 0x578425
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 0x578449
mov eax, dword [edx + 0x18]
mov dword [esi], eax
jmp 0x578581
mov esi, dword [ebx + 0x14]
mov dword [esp + 0x64], esi
cmp esi, 0x20
jl 0x578465
push ebx
call fcn.0057e9f0
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.005bf6d0
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0x20], 0
je 0x5784dc
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 0x5784a4
add eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x14], eax
mov dword [ecx], esi
xor esi, esi
jmp 0x5784b2
add eax, 0xffffff00
add eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x14], eax
cmp dword [ebx + 0x18], 0
jne 0x578c3f
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebx + 0xc]
jne 0x5784ce
cmp dword [ebx + 0x14], 0x40
jg 0x578c3f
test esi, esi
je 0x57857d
mov edx, dword [esp + 0x58]
jmp 0x578549
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 0x57852b
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.005bf6d0
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 0x578c43
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebx + 0xc]
jne 0x57855b
cmp dword [ebx + 0x14], 0x40
jg 0x578c43
cmp esi, 0x100
jge 0x578849
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0x14], 0
je 0x57863e
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 0x57862b
mov edx, dword [esp + 0x6c]
inc edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], edi
test edx, edx
je 0x5785da
cmp edi, dword [esp + 0x68]
jg 0x5785da
mov eax, edi
and eax, reloc.WS2_32.dll_ntohs
jns 0x5785ca
dec eax
or eax, 0xfffffff0
add eax, 1
jne 0x5785da
push edi
push dword [esp + 0x5c]
call edx
mov ecx, dword [esp + 0x20]
add esp, 8
test ecx, ecx
je 0x57862b
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 0x57862b
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 0x578600
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 0x5783a0
jmp 0x578c47
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.005bf6d0
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 0x5786b6
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.005bf6d0
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 0x5786b9
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 0x5786f4
push ebx
call fcn.0057e9f0
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 0x578771
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 0x578775
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 0x578804
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 0x578c3f
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebx + 0xc]
jne 0x57882b
cmp edx, 0x40
jg 0x578c3f
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 0x578581
cmp esi, 0x118
jge 0x578bb7
lea edx, [esi - 0x100]
mov dword [esp + 0x64], edx
cmp edx, 4
jl 0x578883
lea esi, [edx - 2]
sar esi, 1
push esi
push ebx
call fcn.0057eaf0
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.005bf6d0
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 0x5788f6
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.005bf6d0
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 0x5788f9
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 0x57891b
push ebx
call fcn.0057e9f0
mov edx, dword [esp + 0x30]
add esp, 4
cmp edx, 4
jb 0x57893f
lea esi, [edx - 2]
sar esi, 1
push esi
push ebx
call fcn.0057eaf0
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 0x57894a
lea esi, [edx - 0x78]
jmp 0x57896d
movzx eax, byte [edx + 0x5ed2af]
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 0x578c3f
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebx + 0xc]
jne 0x578989
cmp dword [ebx + 0x14], 0x40
jg 0x578c3f
mov ecx, dword [esp + 0x10]
mov eax, ecx
sub eax, dword [esp + 0x5c]
sar eax, 2
cmp eax, esi
jl 0x578cf5
mov eax, dword [esp + 0x3c]
sub eax, ecx
sar eax, 2
cmp eax, dword [esp + 0x64]
jl 0x578cf5
lea eax, [esi*4]
mov edx, ecx
sub edx, eax
mov eax, dword [esp + 0x64]
cmp esi, 2
jg 0x578af0
cmp eax, 4
jl 0x578af0
test cl, 3
jne 0x578af0
mov eax, dword [edx]
mov dword [esp + 0x24], eax
cmp esi, 1
jne 0x5789ec
xor esi, esi
or esi, eax
jmp 0x5789ef
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 0x578a25
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 0x578a29
mov ecx, dword [esp + 0x64]
sar ecx, 1
mov dword [esp + 0x24], 0
test ecx, ecx
jle 0x578a59
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 0x578a6e
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 0x578ad6
mov ebx, dword [esp + 0x58]
sub ecx, edx
inc edi
cmp dword [esp + 0x6c], 0
mov dword [esp + 0x14], ecx
je 0x578aca
cmp edi, dword [esp + 0x68]
jg 0x578aca
mov eax, edi
and eax, reloc.WS2_32.dll_ntohs
jns 0x578ab7
dec eax
or eax, 0xfffffff0
add eax, 1
jne 0x578aca
push edi
push ebx
call dword [esp + 0x74]
mov ecx, dword [esp + 0x1c]
add esp, 8
mov edx, dword [esp + 0x60]
cmp ecx, edx
jge 0x578a93
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x20], edi
test dword [esp + 0x38], ecx
je 0x578b66
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x98]
test ecx, ecx
jne 0x578b32
jmp 0x578b56
cmp esi, eax
jl 0x578b07
shl eax, 2
push eax
push edx
push ecx
call fcn.0058cfa0
add esp, 0xc
jmp 0x578a6e
test eax, eax
jle 0x578a72
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 0x578b17
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x64]
jmp 0x578a76
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 0x57862b
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 0x57862b
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 0x578b93
jmp 0x57861f
cmp esi, dword [esp + 0x44]
jge 0x578cf9
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 0x578c2b
mov ebx, ecx
mov edi, eax
mov ecx, dword [esp + 0x18]
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 0x578bf0
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 0x578585
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 0x578585
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x6c]
cmp dword [ebx + 0x18], 0
jne 0x578c63
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebx + 0xc]
jne 0x578c5f
cmp dword [ebx + 0x14], 0x40
jg 0x578c63
xor eax, eax
jmp 0x578c68
mov eax, 1
mov dword [ebx + 0x18], eax
cmp dword [edx + 0x38], 0
je 0x578cbc
test eax, eax
je 0x578cc0
cmp esi, dword [esp + 0x3c]
jae 0x578cbc
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 0x578ce8
lea eax, [edx + 0x7c]
push eax
lea eax, [edx + 0x88]
push eax
call fcn.00585890
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
test eax, eax
jne 0x578cf9
test ecx, ecx
je 0x578cd8
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]
pop edi
pop esi
pop ebp
mov dword [edx], 3
xor eax, eax
pop ebx
add esp, 0x44
ret