Function at 0x43d650
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x4a9b24]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], eax
mov dword [0x4a9b24], ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x2c], 0xffffffff
mov byte [esp + 0xe], 0xa
mov byte [0x4a9b2c], bl
mov byte [0x4a9b23], bl
mov byte [0x4a9b22], bl
mov dword [0x4a9b28], ebx
mov byte [esp + 0x13], bl
mov byte [esp + 0x10], bl
mov byte [esp + 0x11], bl
mov byte [esp + 0x14], bl
mov byte [esp + 0xf], bl
mov byte [esp + 0x12], bl
cmp byte [esi], bl
je 0x43d840
movsx ecx, byte [esi]
push ecx
call fcn.00487c75
add eax, 0xffffffbd
add esp, 4
cmp eax, 0x19
ja case.0x43d6df.69
movzx edx, byte [eax + 0x43e1e8]
jmp dword [edx*4 + 0x43e1c0]
movzx edi, byte [esi + 1]
test edi, 0xffffff80
jne 0x43d704
push 2
push edi
call fcn.0048696e
add esp, 8
cmp eax, ebx
je 0x43d704
and edi, 0xffffffdf
mov eax, edi
cmp al, 0x4c
jne 0x43d717
inc esi
mov byte [0x4a9b2c], 2
jmp case.0x43d6df.69
mov byte [0x4a9b2c], 1
jmp case.0x43d6df.69
cmp byte [esi + 1], 0
je case.0x43d6df.69
mov al, byte [esi + 1]
inc esi
test al, al
je case.0x43d6df.69
mov byte [esp + 0xe], al
jmp case.0x43d6df.69
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je case.0x43d6df.70
cmp al, 9
je case.0x43d6df.70
mov edi, 0x49aff4
mov eax, esi
call fcn.004093a0
mov edi, eax
cmp edi, ebx
jne 0x43d771
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43d765
sub eax, edx
lea edi, [esi + eax]
push ebx
mov eax, edi
sub eax, esi
push eax
push esi
mov ecx, 0x4acd80
call fcn.0041f1a0
mov ecx, eax
mov dword [0x4a9b24], ecx
cmp ecx, ebx
je 0x43e10c
cmp byte [ecx + 0x3d], 0
jne 0x43e10c
mov eax, dword [ecx + 0x10]
cmp eax, 2
jl 0x43e10c
cmp eax, 3
jg 0x43e10c
mov eax, dword [ecx + 0xc]
cmp word [eax + 4], 0
jne 0x43e10c
cmp word [eax + 0x14], 0
jne 0x43e10c
lea esi, [edi - 1]
xor ebx, ebx
jmp case.0x43d6df.69
mov byte [0x4a9b23], 1
jmp case.0x43d6df.69
lea ecx, [esi + 1]
push ecx
call fcn.004869b6
add esp, 4
cmp eax, 1
jge 0x43d7f0
mov eax, 1
dec eax
mov dword [0x4a9b28], eax
jmp case.0x43d6df.69
push 6
push str.Random
push esi
call fcn.00485eb0
add esp, 0xc
test eax, eax
jne 0x43d816
mov byte [esp + 0xf], 1
add esi, 5
jmp case.0x43d6df.69
mov byte [0x4a9b22], 1
jmp case.0x43d6df.69
mov byte [esp + 0x12], 1
mov dword [esp + 0x2c], ebx
jmp case.0x43d6df.69
mov byte [esp + 0x13], 1
jmp case.0x43d6df.69
mov byte [esp + 0x14], 1
inc esi
cmp byte [esi], 0
jne 0x43d6c0
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
test cl, cl
je 0x43e10c
mov ebx, dword [0x4aac68]
mov al, byte [ebx + 0x17]
mov dword [esp + 0x18], ebx
test al, al
jne 0x43d864
mov eax, dword [ebx + 0xc]
mov al, byte [eax + 0x17]
cmp al, 2
ja 0x43e10c
mov edi, 1
mov eax, edx
cmp cl, byte [esp + 0xe]
jne 0x43d87a
inc edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43d873
mov esi, eax
mov ecx, edx
sub esi, ecx
cmp byte [esp + 0x13], 0
mov dword [esp + 0x28], esi
jne 0x43d8a3
cmp eax, ecx
jbe 0x43d8a3
mov cl, byte [eax - 1]
cmp cl, byte [esp + 0xe]
jne 0x43d8a3
dec edi
jmp 0x43d8c9
cmp byte [esp + 0xe], 0xa
jne 0x43d8ce
push 0xa
push edx
call fcn.00486421
add esp, 8
test eax, eax
je 0x43d8ce
cmp eax, dword [ebp + 0xc]
jbe 0x43d8ce
cmp byte [eax - 1], 0xd
jne 0x43d8ce
mov byte [esp + 0x11], 1
mov byte [esp + 0x10], 1
cmp edi, 1
jne 0x43d8ea
mov eax, dword [ebp + 0xc]
push edi
push 0
push esi
push eax
push ebx
call fcn.00475380
mov dword [esp + 0x1c], eax
jmp 0x43e10c
cmp dword [0x4a9b24], 0
jne 0x43d8fa
cmp byte [esp + 0x11], 0
je 0x43d963
lea ecx, [esi + 3]
push ecx
call fcn.004855e9
mov ebx, eax
add esp, 4
mov dword [esp + 0x38], ebx
test ebx, ebx
jne 0x43d92c
mov ecx, dword [ebp + 8]
push 0x4997f1
push eax
push str.Out_of_memory.
call fcn.0042e9d0
mov dword [esp + 0x1c], eax
jmp 0x43e10c
mov eax, dword [ebp + 0xc]
lea edx, [esi + 1]
push edx
push eax
push ebx
call fcn.0048dd80
add esp, 0xc
cmp byte [esp + 0x11], 0
mov dword [ebp + 0xc], ebx
je 0x43d963
mov cx, word [0x49e784]
mov word [esi + ebx], cx
mov dl, byte [0x49e786]
mov byte [esi + ebx + 2], dl
add esi, 2
mov dword [esp + 0x28], esi
xor eax, eax
cmp byte [esp + 0xf], al
setne al
inc edi
inc eax
add eax, eax
add eax, eax
imul edi, eax
push edi
mov dword [esp + 0x24], eax
call fcn.004855e9
mov ebx, eax
add esp, 4
mov dword [esp + 0x34], ebx
test ebx, ebx
jne 0x43d9a8
mov ecx, dword [ebp + 8]
push 0x4997f1
push eax
push str.Out_of_memory.
call fcn.0042e9d0
mov dword [esp + 0x1c], eax
jmp 0x43e10c
mov esi, dword [ebp + 0xc]
mov dword [ebx], esi
cmp byte [esi], 0
mov edi, ebx
mov dword [esp + 0x1c], 0
mov edx, 1
je 0x43da3b
mov al, byte [esi]
cmp al, byte [esp + 0xe]
jne 0x43da34
add dword [esp + 0x1c], edx
cmp byte [esp + 0xf], 0
mov byte [esi], 0
je 0x43da2b
sub dword [0x4a7394], edx
jne 0x43d9ed
call fcn.00412690
mov edx, 1
mov ecx, dword [0x4a9c64]
mov eax, dword [ecx]
add ecx, 4
mov dword [0x4a9c64], ecx
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
shr ecx, 1
mov dword [edi + 4], ecx
add edi, dword [esp + 0x20]
lea eax, [esi + 1]
mov dword [edi], eax
add esi, edx
cmp byte [esi], 0
jne 0x43d9c5
cmp byte [esp + 0x10], 0
jne 0x43da98
add dword [esp + 0x1c], edx
cmp byte [esp + 0xf], 0
je 0x43da98
sub dword [0x4a7394], edx
jne 0x43da5a
call fcn.00412690
mov ecx, dword [0x4a9c64]
mov eax, dword [ecx]
add ecx, 4
mov dword [0x4a9c64], ecx
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov edx, eax
shr edx, 0x12
xor edx, eax
shr edx, 1
mov dword [edi + 4], edx
cmp dword [0x4a9b24], 0
je 0x43dab2
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push 0x43d4b0
push eax
push ecx
jmp 0x43dae6
cmp byte [esp + 0xf], 0
je 0x43daca
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push 0x43d4a0
push edx
push eax
jmp 0x43dae6
cmp byte [esp + 0x14], 0
mov eax, 0x43d430
jne 0x43dadb
mov eax, 0x43d300
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
push ebx
call fcn.00486620
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x28]
mov al, byte [esi + 0x17]
add esp, 0x10
mov ebx, edi
mov dword [esp + 0x28], ebx
test al, al
jne 0x43db16
mov eax, dword [esi + 0xc]
push 1
push 0
push edi
push 0
push eax
call fcn.00475380
jmp 0x43db80
mov byte [esp + 0xf], 1
mov cl, 1
cmp edi, 0xffffffff
jne 0x43db2c
xor cl, cl
xor ebx, ebx
mov dword [esp + 0x28], ebx
jmp 0x43db31
mov byte [esp + 0xf], 0
lea edi, [ebx + 1]
cmp al, 2
jne 0x43db5f
cmp byte [esp + 0xf], 0
je 0x43db4d
push 0x4997f1
mov eax, ebx
call fcn.00404310
jmp 0x43db80
mov esi, 0x4ad3e0
call fcn.00404390
neg eax
sbb eax, eax
neg eax
jmp 0x43db80
cmp edi, dword [0x4a73ac]
jbe 0x43db96
cmp edi, dword [esi + 0x10]
jbe 0x43db96
push 0x4997f1
push 0x4a08e8
mov ecx, 0x4acd80
call fcn.0042ec80
cmp eax, 1
je 0x43dd9b
mov dword [esp + 0x1c], 0
jmp 0x43e10c
cmp edi, 2
jae 0x43dbb4
xor edx, edx
test cl, cl
setne dl
xor al, al
mov ecx, esi
add edx, 3
push edx
call fcn.00475920
jmp 0x43dd9f
mov al, byte [esi + 0x15]
test al, 2
je 0x43dbca
and al, 0x3d
mov byte [esi + 0x15], al
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edx, dword [esi + 0x10]
and byte [esi + 0x15], 0x82
mov dword [esp + 0x30], edx
cmp edi, edx
jbe 0x43dc04
mov cl, byte [esi + 0x14]
cmp cl, 1
jbe 0x43dc37
cmp cl, 2
je 0x43dc6f
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
and byte [ecx + 0x15], 0x7f
mov dword [ecx + 0x10], esi
mov esi, dword [esp + 0x18]
mov dword [ecx + 8], eax
cmp byte [esp + 0xf], 0
je 0x43dd90
mov eax, dword [esi + 8]
cmp eax, 0x4997f1
je 0x43dc28
push ebx
push 0x4997f1
push eax
call fcn.00486010
add esp, 0xc
mov eax, dword [esi + 8]
mov byte [ebx + eax], 0
mov dword [esi + 0xc], ebx
jmp 0x43dd9f
cmp edi, 0x40
ja 0x43dc6f
cmp edi, 4
ja 0x43dc48
mov esi, 4
jmp 0x43dc56
mov eax, 8
cmp eax, edi
sbb esi, esi
and esi, 0x38
add esi, eax
mov eax, esi
call fcn.0046fbe0
test eax, eax
je 0x43db89
mov ecx, dword [esp + 0x18]
mov byte [ecx + 0x14], 1
jmp 0x43dbf6
cmp edi, 0x10
jae 0x43dc7e
mov esi, 0x10
jmp 0x43dd06
cmp edi, 0x104
jae 0x43dc90
mov esi, 0x104
jmp 0x43dd06
cmp edi, 0x28000
jae 0x43dcd4
mov dword [esp + 0x30], edi
fild dword [esp + 0x30]
test edi, edi
jns 0x43dcaa
fadd qword [0x4a18b8]
fmul qword [0x4a18c0]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x30], eax
fldcw word [esp + 0x30]
fistp qword [esp + 0x50]
mov esi, dword [esp + 0x50]
fldcw word [esp + 0x14]
jmp 0x43dd06
cmp edi, 0x190000
jae 0x43dce4
lea esi, [edi + 0x4000]
jmp 0x43dd06
cmp edi, 0x640000
jae 0x43dd00
mov eax, 0x51eb851f
mul edi
mov esi, edx
mov edx, dword [esp + 0x30]
shr esi, 5
add esi, edi
jmp 0x43dd06
lea esi, [edi + 0x10000]
mov eax, dword [0x4a73ac]
cmp esi, eax
jbe 0x43dd11
mov esi, eax
cmp cl, 2
jne 0x43dd50
test edx, edx
je 0x43dd50
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 8]
push edx
mov bl, 1
call fcn.00485448
add esp, 4
xor edi, edi
cmp esi, edi
jl 0x43dd54
push esi
call fcn.004855e9
add esp, 4
cmp eax, edi
je 0x43dd54
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
mov byte [ecx + 0x14], 2
jmp 0x43dbf6
xor bl, bl
jmp 0x43dd2c
mov eax, dword [esp + 0x18]
test bl, bl
je 0x43dd78
push 0x4997f1
mov dword [eax + 0x10], edi
mov dword [eax + 8], 0x4ac626
mov dword [eax + 0xc], edi
push str.Out_of_memory.
jmp 0x43db76
mov edx, dword [eax + 8]
push 0x4997f1
mov byte [edx], 0
mov dword [eax + 0xc], edi
push str.Out_of_memory.
jmp 0x43db76
mov ecx, dword [esi + 8]
mov byte [ecx], 0
mov dword [esi + 0xc], ebx
jmp 0x43dd9f
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x34]
xor ebx, ebx
dec edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edi
cmp byte [esi + 0x17], bl
jne 0x43ddc4
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 0xc]
jmp 0x43ddc8
mov esi, dword [esp + 0x18]
test byte [esi + 0x15], 8
je 0x43ddd5
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x43ddee
test byte [esi + 0x15], 4
je 0x43dde9
mov eax, esi
call fcn.0042f200
mov esi, dword [esi + 8]
jmp 0x43de42
cmp al, 2
jne 0x43de3d
mov eax, dword [0x4ad3ec]
test eax, eax
jne 0x43de39
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 1
call esi
test eax, eax
jne 0x43de23
push 0xf
call esi
test eax, eax
je 0x43de1a
mov eax, str.____
mov esi, eax
jmp 0x43de42
mov eax, 0x4997f1
mov esi, eax
jmp 0x43de42
xor ecx, ecx
call fcn.00404140
cmp eax, 0xffffffff
mov eax, 0x4997f1
je 0x43de39
mov eax, dword [0x4ad3e8]
mov esi, eax
jmp 0x43de42
mov esi, 0x4ac626
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x1c], ebx
jbe 0x43df2b
cmp byte [esp + 0x12], 0
je 0x43df91
test ebx, ebx
je 0x43df91
cmp byte [0x4a9b23], 0
je 0x43df56
cmp dword [0x4a9b28], 0
jne 0x43df56
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx]
mov eax, edi
call fcn.0040ce50
test al, al
je 0x43dea9
push 0x10
push 0
push edi
call fcn.0048722b
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
fild qword [esp + 0x4c]
add esp, 0xc
jmp 0x43deb2
push edi
call fcn.0048732d
add esp, 4
mov eax, ebx
fstp qword [esp + 0x50]
call fcn.0040ce50
test al, al
je 0x43dedc
push 0x10
push 0
push ebx
call fcn.0048722b
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], edx
fild qword [esp + 0x54]
add esp, 0xc
jmp 0x43dee5
push ebx
call fcn.0048732d
add esp, 4
fld qword [esp + 0x50]
fucompp
fnstsw ax
test ah, 0x44
jp 0x43df91
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
inc dword [esp + 0x28]
cmp edx, dword [esp + 0x30]
jne 0x43df10
cmp byte [esp + 0x10], 0
jne 0x43df10
dec esi
mov eax, dword [esp + 0x14]
add edi, dword [esp + 0x20]
inc eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], edi
cmp eax, dword [esp + 0x1c]
jb 0x43de50
mov eax, dword [esp + 0x34]
push eax
call fcn.00485448
mov edi, dword [esp + 0x1c]
add esp, 4
cmp byte [esp + 0x11], 0
je 0x43dff1
mov byte [esi - 2], 0
cmp byte [edi + 0x17], 0
jne 0x43dfc9
mov esi, dword [edi + 0xc]
jmp 0x43dfcb
mov al, byte [0x4a9b2c]
push ebx
test al, al
jne 0x43df6a
mov eax, dword [edi]
push eax
call fcn.00485431
jmp 0x43df81
cmp al, 2
jne 0x43df79
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
jmp 0x43df84
mov eax, dword [edi]
push eax
call fcn.00485581
add esp, 8
test eax, eax
setne al
test al, al
je 0x43defa
mov edi, dword [esp + 0x24]
mov ecx, dword [edi]
mov al, byte [ecx]
test al, al
je 0x43dfaa
lea ecx, [ecx]
inc ecx
mov byte [esi], al
mov al, byte [ecx]
inc esi
test al, al
jne 0x43dfa0
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x30]
jb 0x43dfbb
cmp byte [esp + 0x10], 0
je 0x43dfc2
mov cl, byte [esp + 0xe]
mov byte [esi], cl
inc esi
mov ebx, dword [edi]
jmp 0x43df10
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x43dfe7
test byte [esi + 0x15], 8
je 0x43dfde
mov eax, esi
call fcn.00401150
add dword [esi + 0xc], 0xfffffffe
lea eax, [esi + 0xc]
jmp 0x43dff4
mov eax, 0x4ad590
add dword [eax], 0xfffffffe
jmp 0x43dff4
mov byte [esi], 0
cmp byte [esp + 0x12], 0
je 0x43e0d2
cmp dword [esp + 0x28], 0
je 0x43e0d2
cmp byte [edi + 0x17], 0
jne 0x43e015
mov esi, dword [edi + 0xc]
jmp 0x43e017
mov esi, edi
test byte [esi + 0x15], 8
je 0x43e024
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x43e03d
test byte [esi + 0x15], 4
je 0x43e038
mov eax, esi
call fcn.0042f200
mov eax, dword [esi + 8]
jmp 0x43e08b
cmp al, 2
jne 0x43e086
mov eax, dword [0x4ad3ec]
test eax, eax
jne 0x43e08b
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 1
call esi
test eax, eax
jne 0x43e06e
push 0xf
call esi
test eax, eax
je 0x43e067
mov eax, str.____
jmp 0x43e08b
mov eax, 0x4997f1
jmp 0x43e08b
xor ecx, ecx
call fcn.00404140
cmp eax, 0xffffffff
mov eax, 0x4997f1
je 0x43e08b
mov eax, dword [0x4ad3e8]
jmp 0x43e08b
mov eax, 0x4ac626
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43e090
mov esi, dword [esp + 0x18]
sub eax, edx
mov edi, eax
cmp byte [esi + 0x17], cl
jne 0x43e0a7
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 1
jne 0x43e0bf
test byte [esi + 0x15], 8
je 0x43e0ba
mov eax, esi
call fcn.00401150
lea eax, [esi + 0xc]
jmp 0x43e0c4
mov eax, 0x4ad590
mov ecx, dword [esp + 0x28]
mov dword [eax], edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
cmp byte [edi + 0x17], 0
jne 0x43e0dd
mov eax, dword [edi + 0xc]
jmp 0x43e0df
mov eax, edi
cmp byte [eax + 0x17], 2
jne 0x43e100
cmp dword [0x4ad3ec], 0
je 0x43e100
push 1
mov ecx, 0x4ad3e0
call fcn.00404400
mov dword [esp + 0x1c], eax
jmp 0x43e10c
and byte [eax + 0x15], 0x86
mov dword [esp + 0x1c], 1
mov edi, dword [esp + 0x2c]
cmp edi, 0xffffffff
je 0x43e181
mov esi, dword [0x4ab51c]
cmp byte [esi + 0x17], 0
jne 0x43e124
mov esi, dword [esi + 0xc]
mov al, byte [esi + 0x15]
test al, 2
je 0x43e13a
and al, 0x3d
mov byte [esi + 0x15], al
mov eax, dword [esi]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov al, byte [esi + 0x15]
and al, 0x9b
or al, 0x18
mov dword [esi], edi
mov dword [esi + 4], 0
mov byte [esi + 0x15], al
jns 0x43e15c
mov eax, esi
call fcn.00401150
and byte [esi + 0x15], 0x8f
jmp 0x43e181
cmp dword [0x4aae7c], 0
je 0x43e169
test al, 0x10
jne 0x43e176
cmp dword [0x4aae80], 0
je 0x43e181
test al, 0x20
je 0x43e181
test al, 8
je 0x43e181
mov eax, esi
call fcn.00401150
mov eax, dword [esp + 0x38]
test eax, eax
je 0x43e1a9
push eax
call fcn.00485448
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
add esp, 4
mov dword [0x4a9b24], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [0x4a9b24], edx
pop ebx
mov esp, ebp
pop ebp
ret 8