Function at 0x491750
Capabilities:
Enumerate pe sections
Get file size
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x53f58b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
mov ebx, dword [esp + 0xc8]
push ebp
xor ebp, ebp
cmp word [ebx + 0xa], bp
push esi
push edi
mov dword [esp + 0x4c], ebp
jne 0x49230d
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x79]
mov byte [esp + 0x78], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0xd0]
lea eax, [esp + 0x60]
lea ecx, [esp + 0x58]
push eax
lea edx, [esp + 0x60]
push ecx
push edx
lea eax, [esp + 0x44]
xor edx, edx
push eax
mov dl, byte [edi + 0x17]
mov eax, dword [edi + 0x1c]
lea ecx, [esp + 0x88]
push 0x40
push ecx
mov ecx, dword [edi + 0x30]
push edx
push eax
push ecx
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x84], ebp
call fcn.004a58b0
mov esi, eax
add esp, 0x24
cmp esi, ebp
mov dword [esp + 0x18], esi
je 0x492323
push esi
call fcn.004bded0
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x20], ebp
je 0x492339
cmp esi, 9
mov eax, 1
je 0x491834
cmp esi, 0xc
je 0x491834
cmp esi, 0xe
je 0x491834
cmp esi, 0xf
je 0x491834
cmp esi, 0x10
je 0x491834
cmp esi, 0x11
jne 0x491836
xor eax, eax
mov word [ebx + 8], ax
mov eax, dword [esp + 0xc8]
lea edx, [esp + 0x48]
mov dword [esp + 0x48], 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp]
push 0x1000
mov ecx, ebp
mov esi, eax
call dword [edx + 8]
mov cx, word [ebx + 8]
xor edx, edx
test cx, cx
jne 0x491873
mov edx, eax
jmp 0x491887
cmp cx, 1
jne 0x49187e
lea edx, [eax + 4]
jmp 0x491887
cmp cx, 2
jne 0x491887
lea edx, [eax + 8]
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x54], edx
mov dword [eax], 1
mov eax, dword [esp + 0x5c]
test eax, eax
mov eax, dword [esp + 0xcc]
je 0x4918ab
or dword [eax + 0x24], 0x10
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x4918b7
or dword [eax + 0x24], 0x20
cmp dword [esp + 0xc8], 0xffffffff
jne 0x4918e0
mov dword [0x593050], 1
mov dword [0x593054], 0x29bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x593058], eax
mov eax, dword [esp + 0x48]
xor ecx, ecx
xor edx, edx
xor ebp, ebp
mov dword [edi + 8], ecx
or edx, esi
mov dword [edi + 0xc], ecx
or eax, ebp
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], eax
mov edx, dword [ebx + 0x10]
mov esi, eax
mov eax, edx
and eax, 0xfff
mov ebp, eax
or ebp, ecx
je 0x49193c
test esi, esi
ja 0x491918
cmp edx, 0x1000
jbe 0x491920
mov ebp, eax
mov dword [esp + 0x70], ecx
jmp 0x491926
mov ebp, edx
mov dword [esp + 0x70], esi
mov eax, edx
mov ecx, esi
sub eax, ebp
mov ebp, dword [esp + 0x70]
sbb ecx, ebp
add eax, 0x1000
adc ecx, 0
jmp 0x491940
mov eax, edx
mov ecx, esi
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], esi
lea edx, [edi + 0x38]
mov dword [edi + 0x34], ecx
push edx
lea ecx, [esp + 0x7c]
push eax
push ecx
call fcn.004bb3b0
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0xec]
add esp, 0xc
mov dword [edi + 0x4c], edx
xor edi, edi
call fcn.0051a7b0
test eax, eax
jbe 0x491987
mov edi, 1
mov ecx, dword [esp + 0xe8]
call fcn.0051a7b0
test eax, eax
jbe 0x491998
inc edi
mov ecx, dword [esp + 0xe0]
call fcn.0051a7b0
mov ecx, dword [esp + 0xe8]
mov esi, eax
call fcn.0051a7b0
add esi, eax
xor eax, eax
cmp eax, esi
lea ecx, [edi + edi*4]
sbb eax, eax
mov edx, dword [esp + 0xd0]
and eax, esi
xor edi, edi
push 0
lea eax, [eax + ecx*8 + 0xd8]
mov dword [esp + 0x70], eax
lea esi, [eax + 0xfff]
mov eax, dword [esp + 0xd8]
shr esi, 0xc
shl esi, 0xc
mov dword [edx + 0x24], esi
mov ebp, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov ebx, dword [0x575604]
mov dword [esp + 0x54], esi
add esi, ebp
adc edi, eax
push ebx
push edi
push esi
mov dword [esp + 0x78], eax
call fcn.00432210
test eax, eax
je 0x491a16
sub ebx, eax
add esi, ebx
adc edi, 0
mov ebx, dword [esp + 0xc8]
push edi
push esi
push ebx
call fcn.004bc080
add esp, 0xc
test eax, eax
je 0x49234f
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0x54]
xor eax, eax
xor edi, edi
mov ax, word [ecx + 8]
xor esi, esi
sub eax, edi
mov dword [ecx + 0x28], edi
mov dword [ecx + 0x2c], edx
mov dword [ecx + 0x30], edi
mov dword [ecx + 0x34], 0x1000
je 0x491a6d
dec eax
je 0x491a66
dec eax
jne 0x491a6f
mov esi, 8
jmp 0x491a6f
mov esi, 4
jmp 0x491a6f
xor esi, esi
mov eax, dword [ecx + 0x10]
mov word [ecx + 6], si
mov esi, dword [ecx + 0x14]
mov dword [esp + 0x34], edi
or eax, esi
mov dword [esp + 0x24], edi
jne 0x491aaa
mov ecx, dword [esp + 0xd0]
push edi
push edi
mov edx, dword [ecx + 0x24]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x34], 1
mov dword [esp + 0x24], edi
jmp 0x491e08
mov eax, dword [0x575604]
mov esi, eax
push eax
shr esi, 0xc
imul esi, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x78], esi
call fcn.00520a0a
push esi
mov dword [esp + 0x4c], eax
call fcn.00520a0a
mov edx, dword [esp + 0x70]
mov dword [esp + 0x18], eax
add esp, 8
mov ecx, 0xc
mov eax, ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x2c], edi
call fcn.00514d20
and ebp, 0xfff
or ebp, edi
je 0x491af9
inc eax
lea esi, [eax - 1]
cmp esi, edi
mov dword [esp + 0x28], esi
jl 0x491dd1
mov ebp, dword [esp + 0x44]
jmp 0x491b16
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x30], 0
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x10]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
mov dword [esp + 0x40], eax
push eax
lea eax, [esp + 0x44]
shl esi, 0xc
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0xec]
push 0
test eax, eax
je 0x491b88
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x34]
push 0
push ecx
push edx
push ebp
push ebx
call fcn.004ba790
add esp, 0x18
jmp 0x491b9a
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x34]
push eax
push ecx
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor edi, edi
cmp eax, edi
je 0x491cfb
cmp dword [esp + 0x30], edi
je 0x491d14
lea edx, [esp + 0x2c]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x68]
push eax
lea edx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x34]
push 0x1000
push ebp
push ecx
mov ecx, dword [esp + 0xf4]
lea edx, [esp + 0x98]
mov dword [esp + 0x84], edi
push edx
mov dx, word [ecx + 8]
push eax
push edx
call fcn.004a2850
add esp, 0x2c
cmp eax, edi
jne 0x491d21
mov edx, dword [esp + 0xd4]
mov ecx, dword [esp + 0x64]
xor eax, eax
mov ebp, ecx
mov ax, word [edx + 8]
sub eax, edi
je 0x491c54
dec eax
je 0x491c3a
dec eax
jne 0x491c56
mov eax, dword [esp + 0x10]
push ecx
mov edi, eax
add eax, 8
push eax
call fcn.004bb390
mov dword [edi + 4], eax
add esp, 8
lea edi, [ebp + 8]
jmp 0x491c56
mov eax, dword [esp + 0x10]
push ecx
mov edi, eax
add eax, 4
push eax
call fcn.004bb390
mov dword [edi], eax
add esp, 8
lea edi, [ebp + 4]
jmp 0x491c56
mov edi, ecx
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x40]
add esi, eax
xor eax, eax
push eax
push ecx
push esi
push ebx
mov dword [esp + 0x50], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0xec]
mov dword [esp + 0x3c], 0
test eax, eax
push 0
je 0x491c9b
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x40]
push edx
push edi
push eax
push ebx
call fcn.004ba890
add esp, 0x14
jmp 0x491cad
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x40]
push ecx
push edi
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x491d92
cmp dword [esp + 0x3c], edi
jb 0x491da8
mov eax, dword [esp + 0xd4]
mov ecx, dword [eax + 0x28]
test ecx, ecx
jne 0x491cd0
mov dword [eax + 0x2c], edi
inc ecx
mov dword [eax + 0x28], ecx
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x491ce7
mov dword [eax + 0x30], edi
mov dword [esp + 0x34], 1
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x28], eax
jns 0x491b0e
jmp 0x491dcf
mov dword [0x593050], 0xd
mov dword [0x593054], 0x34d
jmp 0x491dbc
mov dword [esp + 0x34], 1
jmp 0x491dcf
jge 0x491d7c
push 0x583998
lea ecx, [esp + 0x20]
call fcn.0043b640
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
push 0x361
push eax
push ecx
push edx
lea eax, [esp + 0x2c]
push str.Error:_Encrypt_Data_Failed__File__Algrithm_d__DataLen_lu_KeyLen_lu__LINE_d
push eax
mov dword [esp + 0xd8], edi
call fcn.0043ed60
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004be460
add esp, 0x1c
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc0], 0xffffffff
call fcn.0043bde0
mov dword [0x593050], 0x11
mov dword [0x593054], 0x365
jmp 0x491dbc
mov dword [0x593050], 0xe
mov dword [0x593054], 0x380
jmp 0x491dbc
mov dword [0x593050], 0xe
mov dword [0x593054], 0x388
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x593058], eax
mov dword [esp + 0x24], 1
xor edi, edi
mov eax, dword [esp + 0x44]
cmp eax, edi
je 0x491de2
push eax
call fcn.00520a33
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x491df7
push eax
call fcn.00520a33
add esp, 4
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x491e08
push eax
call fcn.00520a33
add esp, 4
push edi
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [esp + 0xcc]
mov eax, dword [esp + 0xec]
mov ecx, dword [ebp + 0x24]
or ecx, 1
cmp eax, edi
mov dword [ebp + 0x24], ecx
mov ecx, dword [esp + 0xe8]
je 0x491ff6
call fcn.0051a7b0
mov esi, eax
mov dword [0x593050], edi
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x14]
push 1
push edx
push edi
push ebx
mov dword [0x593058], eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push edi
push edi
push ebx
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [0x575608]
mov eax, ebp
cmp esi, edi
mov dword [esp + 0x18], edi
mov dword [eax], ecx
mov edx, dword [0x57560c]
mov dword [eax + 4], edx
mov ecx, dword [0x575610]
mov dword [eax + 8], ecx
mov edx, dword [0x575614]
mov word [ebp + 0x30], 0x40
mov dword [eax + 0xc], edx
je 0x491eb2
mov dword [ebp + 0x20], 0x40001
jmp 0x491eb9
mov dword [ebp + 0x20], 0x40002
push 0x40
push ebp
mov word [ebp + 0x3e], 0x50
mov dword [ebp + 0x34], 0
call fcn.004bb390
add esp, 8
mov dword [esp + 0x20], eax
mov dword [ebp + 0x34], eax
mov ecx, 4
mov edi, 0x575608
mov esi, ebp
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x491fa2
cmp word [ebp + 0x30], 0x40
jne 0x491fa2
mov eax, dword [ebp + 0x20]
cmp eax, 0x40001
je 0x491f0e
cmp eax, 0x40002
jne 0x491fa2
cmp word [ebp + 0x3e], 0x50
jne 0x491fa2
mov esi, dword [esp + 0x20]
xor edi, edi
push esi
push 0x40
push ebp
mov dword [ebp + 0x34], edi
call fcn.004bb340
add esp, 0xc
cmp eax, edi
mov dword [ebp + 0x34], esi
je 0x491fa2
cmp ebx, 0xffffffff
je 0x491f79
cmp ebp, edi
je 0x491f79
lea ecx, [esp + 0x20]
push edi
push ecx
push 0x40
push ebp
push ebx
mov dword [esp + 0x34], edi
call fcn.004ba890
add esp, 0x14
test eax, eax
jne 0x491f9a
mov dword [0x593050], 0xe
mov dword [0x593054], 0x11c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x593058], eax
jmp 0x491fa2
mov dword [0x593050], 1
mov dword [0x593054], 0x11bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x593058], eax
jmp 0x491fa2
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x14]
push 0
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x492191
mov esi, 0x10
mov dword [0x593054], 0x17b8
mov dword [0x593050], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x593058], eax
mov dword [0x593050], esi
mov dword [0x593054], 0x3bf
jmp 0x492379
call fcn.0051a7b0
mov esi, eax
mov dword [0x593050], edi
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x18]
push 1
push ecx
push edi
push ebx
mov dword [0x593058], eax
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push edi
push edi
push ebx
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [0x575608]
mov edx, ebp
cmp esi, edi
mov dword [esp + 0x14], edi
mov dword [edx], eax
mov ecx, dword [0x57560c]
mov dword [edx + 4], ecx
mov eax, dword [0x575610]
mov dword [edx + 8], eax
mov ecx, dword [0x575614]
mov word [ebp + 0x30], 0x40
mov dword [edx + 0xc], ecx
je 0x49206e
mov dword [ebp + 0x20], 0x40001
jmp 0x492075
mov dword [ebp + 0x20], 0x40002
push 0x40
push ebp
mov word [ebp + 0x3e], 0x50
mov dword [ebp + 0x34], 0
call fcn.004bb390
add esp, 8
mov ecx, 4
mov edi, 0x575608
mov esi, ebp
xor edx, edx
mov dword [ebp + 0x34], eax
repe cmpsd dword [esi], dword es:[edi]
mov dword [esp + 0x20], eax
jne 0x49215c
cmp word [ebp + 0x30], 0x40
jne 0x49215c
mov eax, dword [ebp + 0x20]
cmp eax, 0x40001
je 0x4920ca
cmp eax, 0x40002
jne 0x49215c
cmp word [ebp + 0x3e], 0x50
jne 0x49215c
mov esi, dword [esp + 0x20]
xor edi, edi
push esi
push 0x40
push ebp
mov dword [ebp + 0x34], edi
call fcn.004bb340
add esp, 0xc
cmp eax, edi
mov dword [ebp + 0x34], esi
je 0x49215c
cmp ebx, 0xffffffff
je 0x492133
cmp ebp, edi
je 0x492133
lea eax, [esp + 0x28]
push edi
push eax
push 0x40
push ebp
push ebx
mov dword [esp + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x492154
mov dword [0x593050], 0xe
mov dword [0x593054], 0x223c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x593058], eax
jmp 0x49215c
mov dword [0x593050], 1
mov dword [0x593054], 0x2235
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x593058], eax
jmp 0x49215c
mov dword [esp + 0x14], 1
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x18]
push 0
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x492191
mov esi, 0x10
mov dword [0x593054], 0x3293
mov dword [0x593050], esi
jmp 0x491fd6
mov eax, dword [esp + 0x34]
test eax, eax
je 0x492384
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x492384
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0xc8]
push eax
push ecx
push edx
mov dword [esp + 0x58], 1
call fcn.004ac3b0
mov edi, dword [esp + 0xec]
add esp, 0xc
mov ecx, edi
xor esi, esi
call fcn.0051a7b0
test eax, eax
je 0x4921e8
mov ecx, edi
call fcn.0051aeb0
mov esi, eax
mov ebx, dword [esp + 0xcc]
test esi, esi
mov edi, dword [ebx + 0x24]
jne 0x4921fb
and edi, 0xffffffb1
jmp 0x492213
push esi
or edi, 8
call fcn.004a7080
add esp, 4
test eax, eax
je 0x492210
and edi, 0xffffffbf
jmp 0x492213
or edi, 0x40
cmp edi, dword [ebx + 0x24]
je 0x49221b
mov dword [ebx + 0x24], edi
mov edi, dword [esp + 0xe8]
xor esi, esi
mov ecx, edi
call fcn.0051a7b0
test eax, eax
je 0x492238
mov ecx, edi
call fcn.0051aeb0
mov esi, eax
mov ebp, dword [ebx + 0x24]
mov ecx, ebp
and ch, 0xfe
test esi, esi
je 0x492274
mov al, byte [esi + 6]
cmp al, 1
je 0x492258
test al, al
je 0x492258
xor eax, eax
mov ah, byte [esi + 5]
mov edi, eax
jmp 0x49225a
xor edi, edi
xor eax, eax
mov al, byte [esi + 4]
add eax, edi
lea edx, [eax + eax*4]
lea eax, [edx*4 + 8]
mov edx, dword [esi]
cmp edx, eax
jb 0x492274
or ch, 1
cmp ecx, ebp
je 0x49227b
mov dword [ebx + 0x24], ecx
mov eax, dword [esp + 0xec]
test eax, eax
je 0x4922c6
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0xdc]
push ecx
mov ecx, dword [esp + 0xdc]
push edx
mov edx, dword [esp + 0xdc]
push eax
mov eax, dword [esp + 0xdc]
push ecx
mov ecx, dword [esp + 0xd8]
push edx
push eax
push ebx
push ecx
call fcn.0049bd00
jmp 0x492304
mov edx, dword [esp + 0xe8]
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0xdc]
push edx
mov edx, dword [esp + 0xdc]
push eax
mov eax, dword [esp + 0xdc]
push ecx
mov ecx, dword [esp + 0xdc]
push edx
mov edx, dword [esp + 0xd8]
push eax
push ecx
push ebx
push edx
call fcn.004a9760
add esp, 0x20
test eax, eax
je 0x492365
jmp 0x492384
mov dword [0x593050], 1
mov dword [0x593054], 0x2ab
jmp 0x492379
mov dword [0x593050], 0xb
mov dword [0x593054], 0x2c1
jmp 0x492379
mov dword [0x593050], 0xc
mov dword [0x593054], 0x2c9
jmp 0x492379
mov dword [0x593050], 0x25
mov dword [0x593054], 0x30b
jmp 0x492379
mov dword [0x593050], 0x10
mov dword [0x593054], 0x3e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x593058], eax
mov ecx, dword [esp + 0xb8]
mov eax, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb4
ret