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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov edi, dword [ebp + 0x24]
mov esi, dword [ebp + 0x28]
mov edx, dword [ebp + 8]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edi
mov ebx, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x28], ebx
mov dword [esp + 8], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov eax, dword [ebp + 0x20]
mov ecx, 6
test eax, eax
js 0x4058af
mov ecx, eax
mov eax, edi
or eax, esi
je 0x4058bf
mov eax, ecx
and ecx, 0x400
jmp 0x4058e9
mov dword [esp + 0xc], edi
mov edi, esi
mov eax, ecx
mov esi, ecx
and esi, 0x400
xor ecx, ecx
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x14], esi
je 0x4059a9
test esi, esi
mov esi, edi
mov edi, dword [esp + 0xc]
jne 0x4058f1
mov dword [esp + 0x14], ecx
mov cx, 8
test eax, 0x10000
mov dword [esp + 0x10], ebx
mov dword [esp + 4], esi
jne 0x405909
movzx ecx, cx
or ecx, 0x800
and eax, 0xf
mov dword [esp + 0xc], eax
sete ah
cmp dword [esp + 0x14], 0
setne al
mov esi, dword [edx + 0x48]
test esi, esi
je 0x4059ea
cmp dword [edx + 0x14], 2
jne 0x4059ea
mov dword [esp], esi
mov ebx, dword [ebp + 0xc]
cmp dword [ebp + 0x14], 0
je 0x405956
test ebx, ebx
mov esi, dword [esp + 0x14]
mov ebx, dword [esp]
je 0x4059ea
cmp dword [ebp + 0x10], 0
jne 0x405965
jmp 0x4059ea
test ebx, ebx
mov esi, dword [esp + 0x14]
mov ebx, dword [esp]
je 0x4059ea
cmp word [ebp + 0x1c], 0
mov dword [esp + 0x90], ecx
setne cl
cmp dword [ebp + 0x18], 0
sete dl
test dl, cl
mov edx, dword [ebp + 8]
jne 0x4059ea
cmp dword [esp + 0xc], 0xb
jae 0x4059ea
mov dword [esp + 0x14], esi
mov esi, dword [ebx + 0x34]
mov ecx, dword [edx + 0x10]
mov dword [esp + 0x24], esi
test esi, esi
je 0x4059b4
cmp ecx, 0xffffffff
jne 0x4059da
mov dword [edx + 0x1c], 2
jmp 0x4059f1
mov esi, edi
mov edi, dword [esp + 0xc]
jmp 0x4058f1
cmp dword [esp + 4], 0
jne 0x4059cb
mov dword [esp + 0x24], 0
cmp ecx, 0xffff
jne 0x4059da
mov dword [ebx + 0x34], 1
mov dword [esp + 0x24], 1
mov ecx, edi
or ecx, dword [esp + 4]
mov esi, dword [esp + 0x14]
je 0x4059fb
test esi, esi
jne 0x4059fb
mov dword [edx + 0x1c], 0x18
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0x2f
jne 0x405a0c
mov dword [edx + 0x1c], 0x19
jmp 0x4059f1
test esi, esi
je 0x405a1e
mov ebx, dword [ebp + 0x2c]
mov byte [esp + 0x20], 1
mov esi, dword [esp + 4]
jmp 0x405a65
or ah, al
mov byte [esp + 4], ah
mov edi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
push 0
call fcn.004035c0
add esp, 0xc
mov ebx, eax
xor esi, esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 0
mov eax, 0
cmp edi, 4
setb cl
jb 0x405a56
mov eax, dword [esp + 0xc]
or cl, byte [esp + 4]
mov byte [esp + 0x20], cl
mov dword [esp + 0xc], eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00408c90
add esp, 4
cmp eax, 0x10000
jb 0x405a84
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x19
jmp 0x4059f1
mov dword [esp + 0x3c], eax
mov dword [esp + 0xa0], ebx
movzx eax, word [ebp + 0x1c]
mov dword [esp + 0x8c], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x20]
xor ecx, ecx
mov edx, dword [ebx + 0x24]
or edx, eax
mov edx, 0
mov dword [esp + 4], esi
je 0x405aca
lea edx, [eax - 2]
inc edx
mov esi, dword [ebx]
and esi, edx
mov ebx, esi
not ebx
xor esi, eax
and ebx, eax
add ebx, ebx
sub ebx, esi
and ebx, edx
mov edx, ebx
mov dword [esp + 0x4c], edx
mov eax, dword [esp + 0x8c]
add eax, dword [esp + 0x3c]
adc ecx, 0xffffffff
mov edx, dword [esp]
mov edx, dword [edx + 4]
add eax, edx
adc ecx, 0
mov ebx, eax
add ebx, 0x4b
adc ecx, 0
cmp ebx, 1
sbb ecx, 0xffffffff
jae 0x405b06
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x4059f1
mov esi, dword [esp + 0x24]
test esi, esi
jne 0x405b6f
mov esi, dword [esp + 0x3c]
mov ecx, esi
shr ecx, 0x1f
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x8c]
add ebx, dword [ebp + 0x38]
mov ecx, 0xffffffff
adc ecx, 0
add esi, esi
add ebx, dword [ebp + 0x40]
adc ecx, 0
add ebx, esi
adc ecx, dword [esp + 0x24]
add ebx, dword [esp + 0x4c]
adc ecx, 0
add ebx, edx
adc ecx, 0
mov edx, dword [ebp + 8]
add ebx, dword [edx]
adc ecx, dword [edx + 4]
add ebx, 0x72
adc ecx, 0
xor esi, esi
mov edx, 0xffffffff
cmp ecx, edx
jae 0x405b6f
mov ecx, dword [esp]
mov dword [ecx + 0x34], 1
mov esi, 1
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x405bb7
mov dword [esp + 0x24], 0
mov ecx, edx
xor ecx, 0xfffffffe
and edx, 0xfffffffe
lea ecx, [ecx + edx*2]
mov edx, dword [ebp + 0xc]
cmp byte [edx + ecx + 1], 0x2f
jne 0x405bbf
cmp dword [ebp + 0x14], 0
jne 0x405ba8
mov dword [esp + 0x24], 0x10
or edi, dword [esp + 4]
je 0x405bbf
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x18
jmp 0x4059f1
mov dword [esp + 0x24], 0
test esi, esi
je 0x405bc8
mov esi, 0x1c
add eax, esi
add eax, 0x2e
mov ebx, dword [esp]
mov edx, dword [ebx + 8]
cmp edx, eax
mov ecx, dword [ebp + 0x14]
jae 0x405c13
mov ecx, 1
test edx, edx
je 0x405be5
mov ecx, edx
mov esi, ecx
add ecx, ecx
cmp esi, eax
jb 0x405be5
push esi
mov ebx, dword [esp + 4]
push dword [ebx + 0xc]
push dword [ebx]
mov edi, dword [ebp + 8]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x405d80
mov dword [ebx], eax
mov dword [ebx + 8], esi
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0x18]
inc eax
cmp edx, eax
jae 0x405c59
mov ecx, 1
test edx, edx
je 0x405c29
mov ecx, edx
mov esi, ecx
add ecx, ecx
cmp esi, eax
jb 0x405c29
push esi
mov ebx, dword [esp + 4]
push dword [ebx + 0x1c]
push dword [ebx + 0x10]
mov edi, dword [ebp + 8]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x405d80
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x18], esi
mov ecx, dword [ebp + 0x14]
test ecx, ecx
sete al
xor ebx, ebx
or al, byte [esp + 0x20]
jne 0x405c83
push 0x4df40
push 1
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x28]
add esp, 0xc
mov ebx, eax
test eax, eax
je 0x405e9d
mov ecx, dword [ebp + 8]
mov edi, dword [esp + 0x10]
mov edx, edi
mov esi, dword [esp + 0x4c]
push esi
push dword [esp + 0xc]
call fcn.00406460
add esp, 8
test eax, eax
je 0x405d8c
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x14], 0
setne dl
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add eax, esi
adc ecx, 0
mov dword [esp + 4], eax
mov dword [esp + 0x28], eax
add edi, esi
mov dword [esp + 0x10], edi
mov edi, dword [esp + 8]
adc edi, 0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov word [esp + 0x88], 0
movzx ebx, byte [esp + 0x20]
xor bl, 1
or bl, dl
movzx edx, bl
shl edx, 3
mov dword [esp + 0x14], edx
mov eax, dword [esp]
cmp dword [eax + 0x34], 0
je 0x405d9e
mov dword [esp + 8], edi
mov eax, 0xfffffffe
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
cmp eax, edi
mov edx, 0
mov dword [esp], esi
sbb edx, esi
mov esi, dword [esp + 4]
jb 0x405eac
cmp eax, esi
mov edx, 0
sbb edx, ecx
jb 0x405eac
mov dword [esp], 0
xor eax, eax
jmp 0x405f02
mov dword [edi + 0x1c], 0x10
jmp 0x4059f1
push ebx
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x4059f1
cmp dword [esp + 0x44], 0
jne 0x406280
test edi, edi
jne 0x406280
mov dword [esp + 8], edi
mov dword [esp + 0x6c], 0x4034b50
test bl, bl
je 0x405dc3
mov bl, 0x14
mov byte [esp + 0x70], bl
mov ebx, dword [esp + 0x90]
movzx edx, bx
mov byte [esp + 0x72], bl
mov byte [esp + 0x73], dh
mov edx, dword [esp + 0x14]
mov byte [esp + 0x74], dl
mov dword [esp + 0x75], 0
mov dword [esp + 0x79], 0
mov dword [esp + 0x7d], 0
mov dword [esp + 0x81], 0
mov byte [esp + 0x85], 0
mov ebx, dword [esp + 0x3c]
mov byte [esp + 0x86], bl
mov byte [esp + 0x87], bh
mov eax, dword [ebp + 0x38]
mov byte [esp + 0x88], al
mov byte [esp + 0x89], ah
lea edx, [esp + 0x6c]
push 0x1e
push edx
push ecx
push dword [esp + 0x10]
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x406084
mov edi, dword [esp + 0x10]
lea eax, [edi + edi]
and eax, 0x3c
xor edi, 0x1e
add edi, eax
mov eax, esi
mov esi, dword [esp + 8]
adc esi, 0
push ebx
push dword [ebp + 0xc]
push esi
push edi
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x406074
add edi, ebx
adc esi, 0
mov dword [esp], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x38]
mov ebx, edi
jmp 0x40600b
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x10
jmp 0x4059f1
mov edx, 0xfffffffe
cmp eax, esi
mov eax, 0
sbb eax, ecx
jb 0x405ec0
xor eax, eax
jmp 0x405ec4
lea eax, [esp + 0x28]
cmp edx, edi
mov ecx, 0
sbb ecx, dword [esp]
jb 0x405ed7
mov esi, 0
jmp 0x405edb
lea esi, [esp + 0x40]
mov edx, 0
jae 0x405ee6
lea edx, [esp + 0x30]
lea ecx, [esp + 0xa8]
mov dword [esp], ecx
push eax
push esi
call fcn.00406500
add esp, 8
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov edx, dword [ebp + 0x38]
add edx, eax
mov dword [esp + 0x6c], 0x4034b50
test bl, bl
je 0x405f19
mov bl, 0x14
mov byte [esp + 0x70], bl
mov byte [esp + 0x71], 0
movzx ebx, word [esp + 0x90]
mov byte [esp + 0x72], bl
mov byte [esp + 0x73], bh
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x74], bl
mov dword [esp + 0x75], 0
mov dword [esp + 0x79], 0
mov dword [esp + 0x7d], 0
mov dword [esp + 0x81], 0
mov byte [esp + 0x85], 0
mov ebx, dword [esp + 0x3c]
mov byte [esp + 0x86], bl
mov byte [esp + 0x87], bh
mov byte [esp + 0x88], dl
mov byte [esp + 0x89], dh
lea edx, [esp + 0x6c]
push 0x1e
push edx
push ecx
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x406084
mov edi, dword [esp + 0x10]
add edi, 0x1e
mov eax, esi
mov esi, dword [esp + 8]
adc esi, 0
push ebx
push dword [ebp + 0xc]
push esi
push edi
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x406074
add edi, ebx
adc esi, 0
cmp dword [esp], 0
mov ebx, edi
je 0x406001
lea eax, [esp + 0xa8]
mov edi, dword [esp + 4]
push edi
push eax
push esi
push ebx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x406090
add ebx, edi
adc esi, 0
jmp 0x406008
mov dword [esp], 0
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x40602d
push eax
push dword [ebp + 0x34]
push esi
push ebx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
mov ecx, dword [ebp + 0x38]
add esp, 0x14
cmp eax, ecx
jne 0x406090
add ebx, ecx
adc esi, 0
mov edi, dword [ebp + 0x14]
movzx eax, byte [esp + 0x20]
test al, al
mov dword [esp + 0x10], ebx
mov dword [esp + 8], esi
je 0x40609f
push edi
push dword [ebp + 0x10]
push esi
push ebx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x406074
mov eax, dword [ebp + 0x14]
add dword [esp + 0x10], eax
adc dword [esp + 8], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0
jmp 0x406162
push dword [esp + 0x1c]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x4059f1
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x4059f1
test edi, edi
je 0x406162
mov eax, dword [ebp + 8]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov eax, dword [esp + 0xc]
mov ecx, eax
cmp eax, 0xa
jl 0x4060de
mov ecx, 0xa
xor eax, eax
mov edx, dword [esp + 0xc]
cmp edx, 4
setl al
shl eax, 0xe
or eax, dword [ecx*4 + 0x442a58]
test edx, edx
jne 0x4060fd
or eax, 0x80000
lea ecx, [esp + 0x50]
push eax
push ecx
push 0x406570
mov esi, dword [esp + 0x28]
push esi
call fcn.00404b70
add esp, 0x10
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xa4], eax
lea eax, [esp + 0xa4]
push 4
push 0
push 0
push eax
push dword [ebp + 0x10]
push esi
call fcn.00403670
add esp, 0x18
cmp eax, 1
jne 0x406260
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 8], eax
push dword [esp + 0x1c]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov esi, ecx
mov dword [esp + 0xc], eax
or ecx, eax
je 0x406379
mov dword [esp + 0x50], 0x8074b50
mov edx, dword [esp + 0xa0]
mov byte [esp + 0x54], dl
mov byte [esp + 0x55], dh
mov ecx, edx
shr ecx, 0x10
mov byte [esp + 0x56], cl
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x57], cl
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
cmp dword [esp], 0
je 0x40627c
mov byte [esp + 0x58], cl
mov byte [esp + 0x59], ch
mov ebx, ecx
shr ebx, 0x10
mov byte [esp + 0x5a], bl
mov ebx, edx
shr ebx, 0x10
shr ecx, 0x18
mov byte [esp + 0x5b], cl
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x5c], dl
mov byte [esp + 0x5d], dh
mov byte [esp + 0x5e], bl
mov byte [esp + 0x5f], cl
mov edx, esi
mov byte [esp + 0x60], dl
mov byte [esp + 0x61], dh
mov ecx, esi
shr ecx, 0x10
mov byte [esp + 0x62], cl
mov ecx, esi
shr ecx, 0x18
mov byte [esp + 0x63], cl
mov dword [esp + 0x1c], 0x38
mov dword [esp + 0x98], 0x30
mov ecx, 0x28
mov dword [esp + 0x20], 0x18
mov dword [esp + 0x4c], 0x17
mov eax, dword [esp + 0xc]
mov edx, eax
mov byte [esp + 0x1b], al
mov dword [esp + 0x9c], 0x16
mov dword [esp + 0x94], 0x15
mov edi, 0x14
jmp 0x4062dc
push dword [esp + 0x1c]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0xc
jmp 0x4059f1
test edx, edx
je 0x40628f
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x4059f1
mov dword [esp + 0x58], ecx
mov dword [esp + 0x1c], 0x18
mov dword [esp + 0x98], 0x10
mov ecx, 8
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x9c], 0xe
mov edx, esi
mov byte [esp + 0x1b], dl
mov dword [esp + 0x94], 0xd
mov edi, 0xc
mov dword [esp + 0x20], 0x10
mov edx, esi
mov ebx, dword [esp + 0xc]
shrd edx, ebx, cl
shr ebx, cl
movzx eax, byte [esp + 0x1b]
mov byte [esp + edi + 0x50], al
test cl, 0x20
jne 0x4062f7
mov ebx, edx
mov edx, esi
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0xc]
shrd edx, eax, cl
mov edi, dword [esp + 0x94]
mov byte [esp + edi + 0x50], bl
mov ebx, eax
shr ebx, cl
test cl, 0x20
jne 0x40631d
mov ebx, edx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
shrd esi, eax, cl
mov edx, esi
mov esi, dword [esp + 0x9c]
mov byte [esp + esi + 0x50], bl
shr eax, cl
test cl, 0x20
jne 0x40633e
mov eax, edx
mov ecx, dword [esp + 0x4c]
mov byte [esp + ecx + 0x50], al
lea eax, [esp + 0x50]
mov esi, dword [esp + 0x20]
push esi
push eax
push dword [esp + 0x10]
push dword [esp + 0x1c]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x4059f1
mov eax, dword [esp + 0x20]
add dword [esp + 0x10], eax
adc dword [esp + 8], 0
cmp dword [esp], 0
je 0x4063d2
xor edx, edx
mov ecx, 0xfffffffe
cmp ecx, dword [esp + 0x28]
mov eax, 0
sbb eax, dword [esp + 0x2c]
jb 0x406399
xor eax, eax
jmp 0x40639d
lea eax, [esp + 0x28]
cmp ecx, dword [esp + 0x30]
mov ecx, 0
sbb ecx, dword [esp + 0x34]
jb 0x4063b3
mov edi, 0
jmp 0x4063b7
lea edi, [esp + 0x40]
jae 0x4063bd
lea edx, [esp + 0x30]
lea ecx, [esp + 0xa8]
push eax
push edi
call fcn.00406500
add esp, 8
mov dword [esp + 4], eax
movzx ebx, word [esp + 0x90]
movzx esi, word [esp + 0x14]
movzx eax, word [esp + 4]
movzx edi, word [esp + 0x3c]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [esp + 0x2c]
push dword [esp + 0x38]
push dword [esp + 0x38]
push 0
push 0
push ebx
push esi
push dword [esp + 0xc4]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [esp + 0x64]
push dword [esp + 0x64]
push dword [esp + 0xc4]
push dword [ebp + 0x18]
push eax
push dword [esp + 0x44]
push edi
call fcn.004065c0
add esp, 0x4c
test eax, eax
je 0x4059f1
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov ecx, dword [esp + 8]
mov dword [eax + 4], ecx
mov eax, 1
jmp 0x4059f3