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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x464a52
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
cmp ebp, 0x7d0
push edi
mov esi, ecx
jg 0x40f701
je 0x40f61c
lea eax, [ebp - 0x3e8]
cmp eax, 0xe
ja case.0x40f710.2002
jmp dword [eax*4 + 0x41005c]
mov eax, dword [esp + 0x34]
mov ecx, esi
push eax
call fcn.0040f2f0
jmp 0x410046
mov eax, dword [esp + 0x34]
lea ecx, [eax + 4]
push ecx
push eax
mov ecx, esi
call fcn.00412760
jmp case.0x40f710.2002
lea eax, [esi + 0x104]
jmp 0x410046
mov edx, dword [esp + 0x34]
push 0
push edx
mov ecx, esi
call fcn.00412100
jmp 0x410046
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push eax
push ecx
call fcn.00421430
jmp 0x410046
mov eax, 5
jmp 0x410046
mov eax, dword [esp + 0x34]
dec eax
je 0x40f4dc
sub eax, 0x7d0
je 0x40f497
dec eax
je 0x40f46d
mov edx, dword [esp + 0x38]
mov byte [edx], 0
jmp case.0x40f710.2002
mov edi, dword [esi + 0xd4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp case.0x40f710.2002
add esi, 0xd0
push 0x87d1c0
lea ecx, [esp + 0x34]
push esi
push ecx
call fcn.004595dc
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
call fcn.00459393
jmp case.0x40f710.2002
add esi, 0xd0
push 0x87d1c0
lea eax, [esp + 0x14]
push esi
push eax
call fcn.004595dc
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00459393
jmp case.0x40f710.2002
mov edi, dword [esp + 0x34]
xor esi, esi
cmp edi, esi
je case.0x40f710.2002
push 0x3c
call fcn.004590d4
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, esi
mov dword [esp + 0x28], esi
je 0x40f54e
mov ecx, eax
call fcn.0045a944
mov esi, eax
push edi
mov ecx, esi
mov dword [esp + 0x2c], 0xffffffff
call fcn.0045adb4
mov eax, esi
jmp 0x410046
mov ecx, dword [esp + 0x34]
test ecx, ecx
je case.0x40f710.2002
mov eax, dword [ecx]
push 1
call dword [eax + 4]
jmp case.0x40f710.2002
mov ecx, dword [esp + 0x34]
test ecx, ecx
je case.0x40f710.2002
call fcn.0045aded
jmp 0x410046
mov eax, dword [esp + 0x34]
test eax, eax
je case.0x40f710.2002
mov eax, dword [eax + 0x1c]
jmp 0x410046
mov esi, dword [esp + 0x34]
test esi, esi
je case.0x40f710.2002
push esi
call fcn.0045ad96
test eax, eax
jne case.0x40f710.2002
mov ecx, dword [esp + 0x38]
test ecx, ecx
je case.0x40f710.2002
mov eax, dword [ecx + 0x1c]
test eax, eax
jne case.0x40f710.2002
push esi
call fcn.0045adb4
mov eax, 1
jmp 0x410046
mov eax, dword [esp + 0x34]
test eax, eax
je case.0x40f710.2002
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00411450
jmp case.0x40f710.2002
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, esi
call fcn.004114d0
jmp case.0x40f710.2002
mov eax, dword [esi + 0x1e4]
test eax, eax
jne case.0x40f710.2002
mov ebx, dword [esp + 0x34]
lea edx, [esp + 0x34]
push 0
push edx
push ebx
lea ecx, [esi + 0x104]
call fcn.0040dc60
cmp eax, 1
jne case.0x40f710.2002
mov edi, dword [esp + 0x38]
test edi, edi
je 0x40f6c9
mov eax, dword [esp + 0x34]
push 0
lea ecx, [eax + 0x14]
call fcn.0040d660
cmp edi, eax
je 0x40f6c9
mov ecx, dword [esp + 0x34]
push 0
push 0
push edi
add ecx, 0x14
call fcn.0040d690
test eax, eax
je case.0x40f710.2002
lea edi, [eax + 0x18]
mov esi, edi
push esi
call fcn.004056d0
add esi, eax
push esi
call fcn.004056d0
lea esi, [eax + esi + 0x14]
add esp, 8
mov eax, dword [esi]
test eax, eax
je 0x40f6aa
push eax
call fcn.0099ecb1
jg 0x40f66c
push es
add byte [eax], al
add byte [eax], al
mov esi, edi
push esi
call fcn.004056d0
add esi, eax
push esi
call fcn.004056d0
add esp, 8
mov dword [eax + esi], 0
jmp case.0x40f710.2002
mov eax, dword [esp + 0x34]
lea edx, [eax + 0x34]
lea ecx, [eax + 0x14]
push edx
call fcn.0040d5e0
mov eax, dword [esp + 0x34]
mov edx, dword [eax + 0x34]
lea ecx, [eax + 0x34]
call dword [edx + 8]
cmp dword [esi + 0x1ec], ebx
jne case.0x40f710.2002
mov dword [esi + 0x1ec], 0
jmp case.0x40f710.2002
lea eax, [ebp - 0x7d1]
cmp eax, 0x27
ja case.0x40f710.2002
jmp dword [eax*4 + 0x410098]
mov eax, dword [esp + 0x34]
mov ecx, esi
push eax
call fcn.004149b0
jmp 0x410046
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40f7c9
lea ecx, [esp + 0x34]
push 0
push ecx
push eax
lea ecx, [esi + 0x104]
call fcn.0040dc60
test eax, eax
je 0x40f7c9
mov ebx, dword [esp + 0x38]
push 0
test ebx, ebx
push 0
jne 0x40f777
mov edx, dword [esp + 0x3c]
lea ecx, [edx + 0x14]
call fcn.0040d610
mov edi, eax
mov eax, dword [esp + 0x34]
push 0
lea ecx, [eax + 0x14]
call fcn.0040d660
mov ebx, eax
jmp 0x40f786
mov ecx, dword [esp + 0x3c]
push ebx
add ecx, 0x14
call fcn.0040d690
mov edi, eax
test edi, edi
je 0x40f7c9
push ebx
call fcn.0040de10
add esp, 4
cmp eax, 1
je 0x40f7c9
add edi, 0x18
push edi
call fcn.004056d0
add edi, eax
push edi
call fcn.004056d0
add edi, eax
add esp, 8
mov edi, dword [edi]
test edi, edi
je 0x40f7c9
mov edx, dword [edi + 0x1c]
push edx
call fcn.00996e7c
add eax, 0x774c085
mov eax, edi
jmp 0x410046
cmp ebp, 0x7d7
jne case.0x40f710.2002
push 0
push 0x880dd0
mov ecx, esi
call fcn.00411fc0
jmp case.0x40f710.2002
mov eax, dword [esi + 0xd0]
jmp 0x410046
mov eax, dword [esi + 0xd4]
jmp 0x410046
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x40f954
mov ecx, dword [ebx]
lea eax, [esp + 0x34]
push 0
push eax
push ecx
lea ecx, [esi + 0x104]
call fcn.0040dc60
test eax, eax
je 0x40f954
mov eax, dword [ebx + 4]
test eax, eax
je 0x40f831
mov eax, dword [eax + 0x1c]
mov edx, dword [ebx + 8]
push eax
mov eax, dword [esp + 0x38]
push edx
push 0
push 0
push eax
call fcn.00410600
test eax, eax
je 0x40f954
mov ecx, dword [esp + 0x34]
push 0
push 0
add ecx, 0x14
call fcn.0040d610
mov edi, eax
add edi, 0x18
push edi
call fcn.004056d0
add edi, eax
push edi
call fcn.004056d0
mov edx, dword [edi + eax + 0x1c]
lea edi, [edi + eax + 0x1c]
mov ecx, dword [edi + edx*4 + 4]
lea eax, [edi + edx*4 + 4]
lea edi, [eax + ecx + 4]
push edi
call fcn.004056d0
mov cl, byte [eax + edi + 4]
add esp, 0xc
test cl, 1
je case.0x40f710.2002
mov edx, dword [ebx]
push 0
push edx
mov ecx, esi
call fcn.00410140
jmp case.0x40f710.2002
mov ecx, esi
call fcn.004116b0
inc dword [esi + 0x1e0]
jmp case.0x40f710.2002
mov ecx, esi
call fcn.004116b0
mov eax, dword [esi + 0x1e0]
test eax, eax
jle case.0x40f710.2002
dec eax
mov dword [esi + 0x1e0], eax
jmp case.0x40f710.2002
mov eax, dword [esp + 0x34]
mov ecx, esi
push eax
call fcn.00419f50
jmp 0x410046
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, esi
call fcn.0041a000
jmp 0x410046
mov eax, dword [esi + 0x248]
test eax, eax
je 0x40f954
mov ecx, dword [esi + 0x240]
test ecx, ecx
je 0x40f954
mov edx, dword [esp + 0x34]
shr eax, 2
push edx
push eax
push ecx
call fcn.00405760
add esp, 0xc
cmp eax, 0xffffffff
je 0x40f954
mov ecx, dword [esi + 0x25c]
test ecx, ecx
jne 0x40f942
xor esi, esi
xor ecx, ecx
mov cl, byte [esi + eax]
mov eax, ecx
jmp 0x410046
mov esi, dword [esi + 0x254]
xor ecx, ecx
mov cl, byte [esi + eax]
mov eax, ecx
jmp 0x410046
or eax, 0xffffffff
jmp 0x410046
mov eax, dword [esi + 0x248]
mov ebx, dword [esp + 0x34]
lea edi, [esi + 0x238]
test eax, eax
je 0x40f98e
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x40f98e
shr eax, 2
push ebx
push eax
push ecx
call fcn.00405760
add esp, 0xc
cmp eax, 0xffffffff
jne case.0x40f710.2002
push ebx
mov ecx, edi
call fcn.00404f10
mov edx, dword [esp + 0x38]
lea ecx, [esi + 0x24c]
push edx
call fcn.00404f90
jmp case.0x40f710.2002
mov eax, dword [esi + 0x248]
lea ebx, [esi + 0x238]
test eax, eax
je case.0x40f710.2002
mov ecx, dword [ebx + 8]
test ecx, ecx
je case.0x40f710.2002
mov edx, dword [esp + 0x34]
shr eax, 2
push edx
push eax
push ecx
call fcn.00405760
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je case.0x40f710.2002
lea eax, [edi*4]
push 4
push eax
mov ecx, ebx
call fcn.00405530
push 1
push edi
lea ecx, [esi + 0x24c]
call fcn.00405530
mov eax, 1
jmp 0x410046
mov ecx, esi
call fcn.00410340
jmp case.0x40f710.2002
mov eax, dword [esp + 0x34]
test eax, eax
je case.0x40f710.2002
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00410440
cmp eax, 1
jne case.0x40f710.2002
jmp 0x410046
push 0
mov ecx, esi
call fcn.00414a60
jmp case.0x40f710.2002
mov ecx, dword [esp + 0x34]
test ecx, ecx
je case.0x40f710.2002
mov eax, dword [esi + 0x1f0]
test eax, eax
je case.0x40f710.2002
mov dword [ecx], eax
mov edx, dword [esi + 0x1f4]
mov dword [ecx + 4], edx
mov eax, 1
jmp 0x410046
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x34]
push 0
push eax
push ecx
lea ecx, [esi + 0x104]
call fcn.0040dc60
cmp eax, 1
jne case.0x40f710.2002
mov eax, dword [esp + 0x38]
push 0
test eax, eax
push 0
jne 0x40fabf
mov edx, dword [esp + 0x3c]
lea ecx, [edx + 0x14]
call fcn.0040d610
jmp 0x40facc
push eax
mov eax, dword [esp + 0x40]
lea ecx, [eax + 0x14]
call fcn.0040d690
test eax, eax
je case.0x40f710.2002
mov eax, dword [eax]
jmp 0x410046
mov ecx, esi
call fcn.004116b0
jmp case.0x40f710.2002
mov eax, dword [esi + 0x270]
mov edi, dword [esp + 0x34]
add esi, 0x260
test eax, eax
je 0x40fb19
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40fb19
shr eax, 2
push edi
push eax
push ecx
call fcn.00405760
add esp, 0xc
cmp eax, 0xffffffff
jne case.0x40f710.2002
push edi
mov ecx, esi
call fcn.00404f10
jmp case.0x40f710.2002
mov edi, dword [esp + 0x34]
xor ebx, ebx
cmp edi, ebx
je case.0x40f710.2002
mov eax, dword [esi + 0x270]
add esi, 0x260
cmp eax, ebx
je case.0x40f710.2002
mov ecx, dword [esi + 8]
cmp ecx, ebx
je case.0x40f710.2002
shr eax, 2
push edi
push eax
push ecx
call fcn.00405760
add esp, 0xc
cmp eax, 0xffffffff
je case.0x40f710.2002
lea ecx, [eax*4]
push 4
push ecx
mov ecx, esi
call fcn.00405530
mov eax, dword [edi + 0xc]
mov dword [edi], ebx
cmp eax, ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x14], ebx
je 0x40fb97
push eax
call fcn.00997c39
wait
mov dword [edi + 0xc], ebx
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x40fbaa
push eax
call fcn.004590fd
add esp, 4
mov dword [edi + 0x10], ebx
push edi
call fcn.004590fd
add esp, 4
jmp case.0x40f710.2002
mov eax, dword [esi + 0x270]
test eax, eax
je case.0x40f710.2002
mov esi, dword [esi + 0x268]
test esi, esi
je case.0x40f710.2002
mov edx, dword [esp + 0x34]
shr eax, 2
push edx
push eax
push esi
call fcn.00405760
add esp, 0xc
cmp eax, 0xffffffff
je case.0x40f710.2002
mov eax, 1
jmp 0x410046
mov eax, dword [esp + 0x34]
push 0
push eax
mov ecx, esi
call fcn.00411fc0
jmp case.0x40f710.2002
mov ebx, dword [esp + 0x38]
test ebx, ebx
je case.0x40f710.2002
mov eax, dword [esp + 0x34]
and eax, 0xdfffffff
cmp eax, 0x80000004
je 0x40fc2f
cmp eax, 0x80000005
jne 0x40fc5d
mov ecx, dword [ebx]
lea esi, [ebx + 4]
test ecx, ecx
mov eax, 1
jle 0x40fc46
imul eax, dword [esi]
add esi, 4
dec ecx
jne 0x40fc3d
test eax, eax
jle 0x40fc5d
mov edi, eax
mov eax, dword [esi]
add esi, 4
push eax
call fcn.0041a450
add esp, 4
dec edi
jne 0x40fc4c
push ebx
call fcn.0041a450
add esp, 4
jmp case.0x40f710.2002
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x40fc85
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0041a320
add esp, 4
jmp 0x410046
mov edx, dword [esp + 0x34]
push edx
call fcn.0041a300
add esp, 4
jmp 0x410046
mov eax, dword [esp + 0x34]
push eax
call fcn.0041a450
add esp, 4
jmp case.0x40f710.2002
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
call fcn.0041a390
add esp, 8
jmp 0x410046
mov eax, dword [esp + 0x34]
push eax
call fcn.0041a370
add esp, 4
jmp case.0x40f710.2002
mov ecx, dword [esp + 0x34]
push 0
push ecx
mov ecx, esi
call fcn.00412100
test eax, eax
je case.0x40f710.2002
mov eax, dword [eax + 0x14]
test al, 4
je 0x40fcf9
mov eax, 2
jmp 0x410046
test al, 0x40
je case.0x40f710.2002
mov eax, 1
jmp 0x410046
mov eax, dword [esi + 0xc4]
jmp 0x410046
mov eax, dword [esi + 0x11c]
shr eax, 3
jmp 0x410046
mov edx, dword [esp + 0x34]
lea ecx, [esi + 0x104]
push edx
call fcn.0040e8f0
mov esi, eax
test esi, esi
je case.0x40f710.2002
mov eax, dword [esi + 0x1c]
push eax
call fcn.00996e7c
rol dword [ebp - 0xb7bf040], 2
add byte [eax], al
mov eax, dword [esi + 0x1c]
jmp 0x410046
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0041f220
add esp, 4
jmp 0x410046
mov edx, dword [esp + 0x34]
push edx
call fcn.0042e7d0
add esp, 4
jmp case.0x40f710.2002
mov edi, dword [esp + 0x34]
cmp edi, 0x10030
jne 0x40fdb8
mov edi, dword [esp + 0x38]
mov eax, dword [0x871708]
mov ecx, dword [0x87170c]
mov edx, dword [0x871710]
mov esi, dword [0x871714]
mov dword [edi], eax
mov eax, 1
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], esi
jmp 0x410046
mov ebx, edi
shr ebx, 0x10
test bx, bx
je case.0x40f710.2002
push edi
call fcn.0041a5d0
add esp, 4
cmp eax, 3
jne case.0x40f710.2002
mov eax, dword [esi + 0x130]
and ebx, 0xffff
dec ebx
shr eax, 2
cmp ebx, eax
jge case.0x40f710.2002
mov ecx, dword [esi + 0x128]
and edi, 0xffff
dec edi
mov eax, dword [ecx + ebx*4]
test eax, eax
je case.0x40f710.2002
cmp edi, dword [eax + 0x54]
jge case.0x40f710.2002
mov edx, dword [esp + 0x38]
push edx
push edi
push 8
call dword [eax + 0x78]
jmp 0x410046
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x34]
push 0
push eax
push ecx
lea ecx, [esi + 0x104]
call fcn.0040dc60
test eax, eax
je case.0x40f710.2002
mov edx, dword [esp + 0x34]
push 0
push 0
lea ecx, [edx + 0x14]
call fcn.0040d610
mov edi, eax
add edi, 0x18
push edi
call fcn.004056d0
add edi, eax
push edi
call fcn.004056d0
lea edi, [edi + eax + 0x1c]
mov eax, dword [edi]
mov ecx, dword [edi + eax*4 + 4]
lea eax, [edi + eax*4 + 4]
lea edi, [ecx + eax + 4]
push edi
call fcn.004056d0
mov ecx, dword [eax + edi + 4]
lea eax, [eax + edi + 4]
add esp, 0xc
or ecx, 8
mov dword [eax], ecx
mov edx, dword [esp + 0x34]
push edx
jmp 0x41003d
mov ebp, dword [esp + 0x34]
lea eax, [esp + 0x38]
push 0
push eax
mov ecx, dword [ebp]
push ecx
lea ecx, [esi + 0x104]
call fcn.0040dc60
test eax, eax
je case.0x40f710.2002
mov eax, dword [esp + 0x38]
mov ebx, dword [ebp + 4]
lea edx, [esp + 0x14]
sub ebx, 0x4e20
push edx
lea ecx, [eax + 0x14]
call fcn.0040e230
test ebx, ebx
jl case.0x40f710.2002
cmp ebx, eax
jge case.0x40f710.2002
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
add ebx, esi
push 0
push ebx
add ecx, 0x14
call fcn.0040d610
mov esi, eax
add esi, 0x18
push esi
call fcn.004056d0
add esi, eax
push esi
call fcn.004056d0
mov edi, dword [esi + eax]
add esi, eax
add esi, 4
add esp, 8
lea ecx, [esp + 0x34]
mov edx, dword [esi]
add esi, 4
mov dword [ebp + 0x10c], edx
mov eax, dword [esi]
add esi, 4
not eax
and eax, 1
push esi
mov dword [ebp + 0x110], eax
call fcn.00459401
push edi
mov dword [esp + 0x2c], 1
call fcn.0041e690
mov esi, eax
add esp, 4
test esi, esi
je 0x40ff68
push 0x880dcc
lea ecx, [esp + 0x38]
call fcn.00459723
push esi
lea ecx, [esp + 0x38]
call fcn.00459723
lea ecx, [esp + 0x18]
push 0xfa
push ecx
lea ecx, [esp + 0x3c]
call fcn.004570d3
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 8]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00459393
mov ecx, dword [esp + 0x38]
push ebx
add ecx, 0x14
call fcn.0040d660
lea ecx, [esp + 0x34]
mov dword [ebp + 0x108], eax
mov dword [esp + 0x28], 0xffffffff
call fcn.00459393
mov eax, 1
jmp 0x410046
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x34]
push 0
push edx
push eax
lea ecx, [esi + 0x104]
call fcn.0040dc60
test eax, eax
je case.0x40f710.2002
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push 0
push 0
push ecx
lea ecx, [edx + 0x14]
call fcn.0040d690
test eax, eax
je case.0x40f710.2002
push 0x7fffffff
push 1
push eax
mov eax, dword [esp + 0x40]
lea ecx, [eax + 0x14]
call fcn.0040dee0
jmp case.0x40f710.2002
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x1c]
push 0
push ecx
push edx
lea ecx, [esi + 0x104]
call fcn.0040dc60
test eax, eax
je case.0x40f710.2002
mov eax, dword [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00413b80
xor eax, eax
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc