Function at 0x10023760
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
xor eax, eax
push ebx
push esi
or ecx, 0xffffffff
push edi
push 0x452fa1bc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.10027e10
add esp, 4
call fcn.10002950
mov esi, dword [ebp + 8]
cmp esi, 1
jne 0x10023a15
push 0x452fa1b4
push 0x452fa194
call fcn.10028020
push 0x452fa168
call fcn.10028020
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
push 0x452fa144
call fcn.10028020
push 0x452fa120
push 0x452fa11c
call fcn.10028020
push 0x452fa0ec
push 0x452fa11c
call fcn.10028020
push 0x452fa0c0
push 0x452fa11c
call fcn.10028020
push 0x452fa090
push 0x452fa11c
call fcn.10028020
push 0x452fa064
push 0x452fa11c
call fcn.10028020
push 0x452fa034
push 0x452fa11c
call fcn.10028020
add esp, 0x44
push 0x452fa004
push 0x452fa11c
call fcn.10028020
push 0x452f9fd0
push 0x452fa11c
call fcn.10028020
push 0x452f9f9c
push 0x452fa11c
call fcn.10028020
push 0x452f9f74
push 0x452fa11c
call fcn.10028020
push 0x452f9f40
push 0x452fa11c
call fcn.10028020
push 0x452f9f18
push 0x452fa11c
call fcn.10028020
push 0x452f9ee4
push 0x452fa11c
call fcn.10028020
push 0x452f9eb4
push 0x452fa11c
call fcn.10028020
add esp, 0x40
push 0x452f9e90
push 0x452fa11c
call fcn.10028020
push 0x452f9e6c
push 0x452fa11c
call fcn.10028020
push 0x452f9e3c
push 0x452fa11c
call fcn.10028020
push 0x452f9df8
push 0x452fa11c
call fcn.10028020
push 0x452f9dc0
push 0x452fa11c
call fcn.10028020
push 0x452f9d80
push 0x452fa11c
call fcn.10028020
push 0x452f9d48
push 0x452fa11c
call fcn.10028020
push 0x452f9d10
push 0x452fa11c
call fcn.10028020
add esp, 0x40
push 0x452f9ce0
push 0x452fa11c
call fcn.10028020
push 0x452f9cac
push 0x452fa11c
call fcn.10028020
push 0x452f9c80
push 0x452fa11c
call fcn.10028020
push 0x452f9c48
push 0x452fa11c
call fcn.10028020
push 0x452f9c20
push 0x452fa11c
call fcn.10028020
push 0x452f9be4
push 0x452fa11c
call fcn.10028020
push 0x452f9bb8
push 0x452fa11c
call fcn.10028020
push 0x452f9b84
push 0x452fa11c
call fcn.10028020
add esp, 0x40
push 0x452f9b48
push 0x452fa11c
call fcn.10028020
push 0x452f9b20
push 0x452fa11c
call fcn.10028020
push 0x452f9af0
push 0x452fa11c
call fcn.10028020
push 0x452f9acc
push 0x452fa11c
call fcn.10028020
push 0x452f84a1
push 0x452fa11c
call fcn.10028020
add esp, 0x28
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
mov dword [edi + esi*4], 0x452f84a1
mov edx, dword [edi + 4]
mov al, byte [edx]
mov byte [esp + 0x11], al
movsx eax, al
sub eax, 2
or al, 2
mov ebx, 1
mov dword [esp + 0x14], ebx
cmp eax, 0x2b
jne 0x10023e71
mov ecx, dword [edi + ebx*4]
mov al, byte [ecx + 1]
mov byte [esp + 0x12], al
movsx eax, al
push eax
add ebx, 1
push 0x452f9abc
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x5c], eax
call fcn.10027d40
add esp, 8
test eax, eax
je 0x10023ac2
sub eax, 0x452f9abc
movsx edx, byte [eax + 0x452f9aac]
lea eax, [eax + 0x452f9aac]
sub edx, 0x30
xor esi, esi
test edx, edx
mov dword [esp + 0x50], eax
jle 0x10023ac2
lea eax, [edi + ebx*4]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
movsx eax, byte [edx]
push eax
call fcn.10027dd0
add esp, 4
test eax, eax
je 0x10023ea3
mov ecx, dword [esp + 0x50]
movsx edx, byte [ecx]
add dword [esp + 0x20], 4
add esi, 1
sub edx, 0x30
cmp esi, edx
jl 0x10023a92
mov eax, dword [esp + 0x54]
add eax, 0xffffffcc
cmp eax, 0x46
ja 0x10023ec7
movzx eax, byte [eax + 0x452e4fc4]
jmp dword [eax*4 + 0x452e4f34]
cmp dword [0x452fb554], 0
mov ecx, dword [0x453c0420]
fld qword [ecx + 0x768]
fstp qword [0x452fb520]
jge 0x10023e98
mov edx, dword [0x453c036c]
mov dword [0x452fb554], edx
cmp ebx, esi
jne 0x10023eeb
push 0x452f9a90
jmp 0x10023f05
movsx edx, byte [esp + 0x12]
push edx
push 0x452f9a70
push 0x3ea
call fcn.100285e0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx eax, byte [esp + 0x12]
push eax
push 0x452f9a58
push 0x3ea
call fcn.100285e0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x28], 0
je 0x10023f4a
push 1
call fcn.10027e10
add esp, 4
test eax, eax
je 0x10023f1e
push 0x452f9a2c
push 0x3ea
call fcn.100285e0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8000
push 1
call fcn.10027e10
add esp, 8
test eax, eax
jge 0x10023f4a
push 0x452f9a20
call fcn.100293b0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, esi
jge 0x10024f27
xor edi, edi
mov esi, 1
push 0x453c0a80
mov dword [esp + 0x1c], esi
mov dword [0x453c08a8], edi
mov dword [0x45400e88], edi
mov dword [0x453c08a0], edi
xor ebx, ebx
mov dword [0x453c08c0], edi
mov dword [0x453e0ce8], 0x3e9
call fcn.10027e10
add esp, 4
test eax, eax
je 0x10023fdf
mov eax, dword [0x453e0d24]
push eax
call fcn.10029330
add esp, 4
cmp eax, 2
jle 0x10023fb4
mov ecx, dword [0x453e0d24]
push ecx
call fcn.10028d60
add esp, 4
mov edx, dword [0x453e0ce8]
push edx
call fcn.10029330
add esp, 4
cmp eax, 2
jle 0x10023fd6
mov eax, dword [0x453e0ce8]
push eax
call fcn.10028d60
add esp, 4
mov dword [esp + 0x18], esi
jmp 0x10024d8e
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + edx*4]
push 0x452f879c
push eax
mov dword [0x45400de4], eax
call fcn.10029080
add esp, 8
cmp eax, edi
mov dword [0x453e0d24], eax
jne 0x10024018
mov eax, dword [0x45400de4]
push eax
call fcn.100293b0
add esp, 4
jmp 0x10024f13
call fcn.1001f780
mov esi, dword [0x45400d84]
mov eax, dword [esp + 0x30]
xor ecx, ecx
cmp esi, edi
sete cl
cmp eax, edi
mov dword [esp + 0x18], ecx
jl 0x1002403b
mov dword [0x453e0d20], eax
mov eax, dword [0x453e0d20]
add eax, 0xe10
xor edx, edx
mov ecx, 0x168
div ecx
sub edx, 0x5a
je 0x10024075
sub edx, 0x5a
je 0x10024069
sub edx, 0x5a
jne 0x1002407f
mov dword [0x453e0d20], 5
jmp 0x1002407f
mov dword [0x453e0d20], 3
jmp 0x1002407f
mov dword [0x453e0d20], 6
cmp dword [esp + 0x34], edi
je 0x10024167
mov eax, dword [0x453e0b08]
mov edx, eax
or edx, dword [0x453e0b0c]
jne 0x100240cb
mov eax, dword [0x45400de4]
push eax
push 0x452f9a08
push 0x3ea
mov dword [esp + 0x24], 1
call fcn.100285e0
mov eax, dword [0x453e0d24]
add esp, 0xc
push eax
call fcn.10028d60
add esp, 4
jmp 0x10024f13
cmp dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
je 0x10024104
mov ecx, dword [0x45400de4]
mov edx, dword [0x453c0a64]
push ecx
push edx
push eax
push 0x452f99f8
call fcn.10028020
mov eax, dword [0x453e0d24]
add esp, 0x10
push eax
call fcn.10028d60
add esp, 4
jmp 0x10024f13
cmp dword [0x453c0364], edi
je 0x1002412a
push eax
mov eax, dword [0x45400de4]
push eax
push 0x452f99e4
push 0x3ea
call fcn.100285e0
mov eax, dword [0x453e0b08]
add esp, 0x10
mov ecx, dword [0x453e0b0c]
mov edx, dword [0x45400de4]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x58]
push ecx
push edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x60], eax
call fcn.10027e10
mov eax, dword [0x453e0d24]
add esp, 8
push eax
call fcn.10028d60
add esp, 4
jmp 0x10024f13
cmp dword [esp + 0x2c], edi
mov dword [0x453c0594], 0x452e98a0
je 0x100241ff
mov eax, dword [0x453c058c]
xor ecx, ecx
cmp eax, edi
sete cl
cmp ecx, edi
mov dword [esp + 0x18], ecx
je 0x100241ba
mov eax, dword [0x45400de4]
push eax
push 0x452f99cc
push 0x3ea
call fcn.100285e0
mov eax, dword [0x453e0d24]
add esp, 0xc
push eax
call fcn.10028d60
add esp, 4
jmp 0x10024f13
mov ecx, dword [0x45400ef0]
cmp ecx, edi
je 0x10024478
mov dx, word [0x453c08cc]
mov dword [0x453e0ce0], ecx
mov cx, word [0x453c0a78]
mov dword [0x453c0688], eax
mov word [0x45400ee6], cx
mov word [0x453c09c0], dx
mov dword [0x453c0ad0], edi
mov dword [0x453c05a0], 3
cmp dword [0x453e0ce0], 0x452cac50
jne 0x10024233
mov ax, word [0x45400ee6]
mov dl, al
and edx, 1
add ax, dx
mov word [0x45400ee6], ax
mov ax, word [0x453c09c0]
mov cl, al
and ecx, 1
add ax, cx
mov word [0x453c09c0], ax
cmp dword [0x45400ee8], edi
je 0x10024243
xor esi, esi
mov dword [0x45400d84], esi
mov ebx, dword [esp + 0x1c]
cmp ebx, edi
je 0x10024499
cmp dword [0x453c0364], edi
je 0x10024499
cmp byte [0x45400da0], 0
je 0x10024499
mov edx, dword [0x45400de4]
push edx
push 0x452f99bc
call fcn.10028020
push 0x453e0b08
call fcn.1002a3d0
push eax
push 0x452f99ac
call fcn.10028020
push 0x453c09e0
push 0x45400da0
push 0x452f999c
call fcn.10028020
add esp, 0x20
cmp byte [0x453c0980], 0
je 0x100242c0
push 0x453c0980
push 0x452f9990
call fcn.10028020
add esp, 8
cmp dword [0x453c08d0], edi
je 0x10024310
push 0x452f9980
call fcn.10028020
add esp, 4
mov esi, 0x18
lea ebx, [ebx]
mov edx, dword [0x453c08d0]
mov eax, esi
neg eax
sbb eax, eax
mov ecx, esi
shr edx, cl
and eax, 0x24
add eax, 0xa
push eax
and edx, 0xff
push edx
push 0x452f9978
call fcn.10028020
add esp, 0xc
sub esi, 8
jns 0x100242e0
fld dword [0x45400dec]
fnstcw word [esp + 0x12]
movzx eax, word [esp + 0x12]
or ah, 0xc
mov dword [esp + 0x54], eax
fldcw word [esp + 0x54]
fistp dword [esp + 0x54]
mov eax, dword [esp + 0x54]
push eax
push 0x452f9968
fldcw word [esp + 0x1a]
call fcn.10028020
push 0x452f995c
call fcn.10028020
add esp, 0xc
fld dword [0x453c08c8]
fcomp dword [0x452f8514]
fnstsw ax
test ah, 0x41
jne 0x10024393
fld dword [0x453c08c8]
fcomp dword [0x452f8510]
fnstsw ax
test ah, 5
jp 0x10024393
push 0x452f9958
call fcn.10028020
fld dword [0x452f8510]
fdiv dword [0x453c08c8]
add esp, 4
fstp dword [0x453c08c8]
fld dword [0x453c08c8]
sub esp, 8
fstp qword [esp]
push 0x452f994c
call fcn.10028020
fld dword [0x453e0cf4]
add esp, 4
fstp qword [esp]
push 0x452f9938
call fcn.10028020
fld dword [0x453c0ad4]
add esp, 4
fstp qword [esp]
push 0x452f9920
call fcn.10028020
add esp, 0xc
cmp dword [0x453c0a74], edi
mov eax, 0x452f991c
jne 0x100243ea
mov eax, 0x452f9918
push eax
push 0x452f98fc
call fcn.10028020
mov ecx, dword [0x45400d84]
push ecx
push 0x452f98e0
call fcn.10028020
fld qword [0x452f84c0]
fld qword [0x453c0a68]
add esp, 0x10
fucompp
fnstsw ax
test ah, 0x44
jnp 0x10024437
fld qword [0x453c0a68]
sub esp, 8
fstp qword [esp]
push 0x452f98c4
call fcn.10028020
add esp, 0xc
cmp dword [0x453c058c], edi
je 0x1002445c
movzx edx, word [0x453c0a78]
movzx eax, word [0x453c08cc]
push edx
push eax
push 0x452f98ac
call fcn.10028020
add esp, 0xc
movzx ecx, word [0x453c0680]
movzx edx, word [0x45400ee4]
push ecx
push edx
push 0x452f9894
call fcn.10028020
jmp 0x100244b2
push edi
push eax
mov eax, dword [0x453e0d24]
push eax
call fcn.10028b60
mov ecx, dword [0x453e0cf0]
add esp, 0xc
mov dword [0x453c0594], ecx
jmp 0x10024c96
cmp esi, edi
jne 0x100244c1
mov eax, dword [0x45400de4]
push eax
push 0x452f987c
push 0x3ea
call fcn.100285e0
add esp, 0xc
cmp dword [0x45400d84], edi
je 0x10024811
cmp dword [0x453c0ad0], edi
je 0x1002451a
cmp dword [0x453c0354], edi
jne 0x10024514
cmp ebx, edi
jne 0x1002451a
fld dword [0x452f8514]
fld dword [0x453c0350]
fucompp
fnstsw ax
test ah, 0x44
jp 0x10024514
fld qword [0x452f84c0]
fld qword [0x452fb500]
fucompp
fnstsw ax
test ah, 0x44
jp 0x10024514
fld qword [0x452f84c0]
fld qword [0x452fb510]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x1002451a
mov ax, 1
jmp 0x1002451d
xor ax, ax
mov di, word [0x453c09c0]
movzx ecx, ax
mov word [0x45400e96], ax
mov ax, word [0x45400ee6]
movzx edx, ax
movzx ebx, di
add edx, ecx
add ebx, ecx
sar edx, cl
sar ebx, cl
cmp dword [esp + 0x1c], 0
mov word [0x453c0a70], dx
mov word [0x453c0ab4], bx
je 0x10024824
xor edx, edx
cmp dword [0x453c0364], edx
je 0x100247f1
cmp dword [0x453c035c], 3
jne 0x100245a2
mov ax, word [0x453c0680]
mov di, word [0x45400ee4]
mov word [0x453c08d4], dx
mov word [0x453c0a20], dx
mov word [0x45400ef8], dx
mov word [0x45400ee6], ax
mov word [0x453c09c0], di
jmp 0x100245a9
mov dx, word [0x453c08d4]
movzx edi, di
movzx ebx, ax
mov dword [esp + 0x50], edi
add edi, ecx
lea esi, [ebx + ecx]
sar esi, cl
sar edi, cl
cmp dword [esp + 0x24], 0
mov word [0x453c0a70], si
mov word [0x453c0ab4], di
je 0x100246a3
test dx, dx
je 0x10024631
fld qword [0x452f8518]
movzx edx, dx
fsqrt
lea eax, [edx + ecx - 1]
sar eax, cl
mov word [0x453c08d4], ax
movzx eax, ax
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fdiv st(1)
call section..text
movzx ecx, si
sub ecx, dword [esp + 0x20]
mov di, ax
mov dword [esp + 0x54], ecx
mov word [0x453c0ab4], di
fild dword [esp + 0x54]
fdiv st(1)
call section..text
fstp st(0)
mov si, ax
mov word [0x453c0a70], si
jmp 0x100246a3
fld qword [0x453c0a68]
fcomp qword [0x452f84c0]
fnstsw ax
test ah, 5
jp 0x1002466a
movzx edx, si
mov dword [esp + 0x54], edx
fild dword [esp + 0x54]
fdiv qword [0x453c0a68]
fadd qword [0x452f8518]
call section..text
mov si, ax
mov word [0x453c0a70], si
fld qword [0x453c0a68]
fcomp qword [0x452f84c0]
fnstsw ax
test ah, 0x41
jne 0x100246a3
movzx eax, di
mov dword [esp + 0x54], eax
fild dword [esp + 0x54]
fmul qword [0x453c0a68]
fadd qword [0x452f8518]
call section..text
mov di, ax
mov word [0x453c0ab4], di
test byte [0x453e0d20], 4
je 0x100246c5
add si, di
mov ax, si
sub ax, di
sub si, ax
mov word [0x453c0ab4], ax
mov word [0x453c0a70], si
mov ecx, dword [esp + 0x50]
push ebx
push ecx
push 0x452f9864
call fcn.10028020
movzx edx, word [0x453c0a70]
movzx eax, word [0x453c0ab4]
push edx
push eax
push 0x452f984c
call fcn.10028020
mov ecx, dword [0x453c05a0]
push ecx
push 0x452f983c
call fcn.10028020
add esp, 0x20
cmp dword [0x453c0ad0], 0
je 0x1002474d
push 0x452f9828
call fcn.10028020
add esp, 4
xor esi, esi
jmp 0x10024720
mov edx, esi
and edx, 1
mov eax, esi
push edx
sar eax, 1
push eax
call fcn.100028c0
movsx ecx, byte [eax + 0x45400e90]
push ecx
push 0x452f9824
call fcn.10028020
add esi, 1
add esp, 0x10
cmp esi, 0x10
jl 0x10024720
push 0x452f980c
call fcn.10028020
xor esi, esi
add esp, 4
cmp dword [0x453c05a0], esi
jbe 0x10024795
jmp 0x10024770
fld dword [esi*4 + 0x453e0af0]
sub esp, 8
fstp qword [esp]
push 0x452f8840
call fcn.10028020
add esi, 1
add esp, 0xc
cmp esi, dword [0x453c05a0]
jb 0x10024770
fld dword [0x453c0ac0]
fcomp dword [0x452f8514]
fnstsw ax
test ah, 0x41
jne 0x100247e0
push 0x452f97f4
call fcn.10028020
add esp, 4
mov esi, 0x453c0ac0
lea ebx, [ebx]
fld dword [esi]
sub esp, 8
fstp qword [esp]
push 0x452f8840
call fcn.10028020
add esi, 4
add esp, 0xc
cmp esi, 0x453c0ad0
jl 0x100247c0
push 0xa
push 0x452f9824
call fcn.10028020
add esp, 8
jmp 0x1002480f
mov edx, dword [0x45400de4]
push 0x453c09e0
push 0x45400da0
push edx
push 0x452f97dc
call fcn.10028020
add esp, 0x10
xor edi, edi
mov eax, dword [0x453e0d24]
push eax
call fcn.10028d60
add esp, 4
jmp 0x10024f13
xor esi, esi
cmp dword [0x452fb554], esi
je 0x1002485e
fld dword [0x453c05c0]
fcomp qword [0x452f87d0]
fnstsw ax
test ah, 0x41
jne 0x1002485e
mov ecx, 0xc
mov esi, 0x453c05c0
mov edi, 0x45400d40
rep movsd dword es:[edi], dword [esi]
mov dword [0x453c08c4], 0
xor esi, esi
mov eax, dword [0x453c08dc]
cmp eax, esi
je 0x1002488e
push eax
call fcn.1002bb10
push 0x452f97d4
push eax
mov dword [0x453c08c0], eax
call fcn.10002ad0
mov dx, word [0x453c0a70]
mov bx, word [0x453c0ab4]
add esp, 0xc
cmp dword [0x453c0ad0], esi
jne 0x100248b9
cmp dword [0x453c05a0], 1
je 0x100248b9
movzx ecx, bx
add ecx, ecx
add ecx, ecx
add ecx, ecx
movzx edx, dx
push ecx
push edx
call fcn.1002bc60
mov dword [0x45400e88], eax
jmp 0x100248d8
movzx eax, word [0x45400ee4]
movzx ecx, word [0x453c0680]
add eax, eax
push eax
add ecx, 7
push ecx
call fcn.1002bc60
mov dword [0x453c08a8], eax
push 0x452f97d4
push eax
call fcn.10002ad0
add esp, 0x10
cmp dword [0x453c0364], esi
je 0x10024911
mov edx, dword [0x45400de4]
push edx
push 0x453c09e0
push 0x45400da0
push 0x452f97b0
push 0x3ea
call fcn.100285e0
add esp, 0x14
mov eax, dword [0x453c0338]
cmp eax, dword [0x45400d84]
jb 0x10024937
push eax
mov eax, dword [0x45400de4]
push eax
push 0x452f9784
push 0x3ea
call fcn.100285e0
add esp, 0x10
mov ecx, dword [0x453c0688]
mov edx, dword [0x453e0d24]
push esi
push ecx
push edx
call fcn.10028b60
mov eax, dword [0x453c08a8]
add esp, 0xc
cmp eax, esi
je 0x10024981
cmp dword [esp + 0x38], esi
je 0x10024981
movzx ecx, word [0x45400ee4]
movzx edx, word [0x453c0680]
imul ecx, edx
push 0x3e8
push ecx
push 2
push eax
call fcn.10028910
add esp, 0x10
jmp 0x10024987
call dword [0x453e0ce0]
cmp dword [0x453c035c], 3
jne 0x100249bf
mov ax, word [0x453c0680]
mov cx, word [0x45400ee4]
mov word [0x453c08d4], si
mov word [0x453c0a20], si
mov word [0x45400ef8], si
mov word [0x45400ee6], ax
mov word [0x453c09c0], cx
movzx ecx, word [0x45400e96]
movzx eax, word [0x45400ee6]
movzx edx, word [0x453c09c0]
add eax, ecx
add edx, ecx
sar eax, cl
sar edx, cl
cmp dword [0x453c08a8], esi
mov word [0x453c0a70], ax
mov word [0x453c0ab4], dx
je 0x10024a28
movzx edx, dx
add edx, edx
add edx, edx
add edx, edx
movzx eax, ax
push edx
push eax
call fcn.1002bc60
push 0x452f97d4
push eax
mov dword [0x45400e88], eax
call fcn.10002ad0
call fcn.1000c440
mov ecx, dword [0x453c08a8]
push ecx
call fcn.1002bb90
add esp, 0x14
cmp dword [0x45400ef4], esi
je 0x10024a35
call fcn.1000c940
mov edx, dword [esp + 0x3c]
push edx
call fcn.1000cb00
mov eax, dword [esp + 0x44]
add esp, 4
cmp eax, esi
je 0x10024a53
push eax
call fcn.1000cef0
add esp, 4
mov eax, dword [esp + 0x44]
xor ebx, ebx
cmp word [0x453c08d4], si
sete bl
add ebx, 2
cmp eax, esi
jl 0x10024a6c
mov ebx, eax
mov eax, dword [0x453c08bc]
mov edi, dword [0x453c08b0]
cmp eax, edi
jbe 0x10024a7d
mov eax, edi
mov esi, dword [0x453c08b4]
cmp eax, esi
jbe 0x10024a89
mov eax, esi
mov edx, dword [0x453c08b8]
cmp eax, edx
jbe 0x10024a95
mov eax, edx
mov ecx, dword [0x453e0ce4]
sub dword [0x453c08bc], eax
add ecx, eax
sub edi, eax
sub esi, eax
sub edx, eax
mov eax, dword [esp + 0x48]
test eax, eax
mov dword [0x453e0ce4], ecx
jl 0x10024abf
mov ecx, eax
mov dword [0x453e0ce4], ecx
mov eax, dword [esp + 0x4c]
add dword [0x453c08bc], ecx
add edi, ecx
add esi, ecx
add edx, ecx
test eax, eax
mov dword [0x453c08b0], edi
mov dword [0x453c08b4], esi
mov dword [0x453c08b8], edx
jle 0x10024aea
mov dword [0x453c09c4], eax
cmp dword [0x45400ee8], 0
je 0x10024b61
cmp dword [0x453c035c], 0
jne 0x10024b0f
cmp dword [0x453e0ce0], 0x452e7fa0
je 0x10024b0f
call fcn.10027fa0
jmp 0x10024b6f
movzx ecx, word [0x453c09c0]
movzx edx, word [0x45400ee6]
imul ecx, edx
add ecx, ecx
add ecx, ecx
xor eax, eax
test ecx, ecx
jle 0x10024b6f
mov ecx, dword [0x45400e88]
cmp word [ecx + eax*2], 0
jge 0x10024b43
mov word [ecx + eax*2], 0
mov ecx, dword [0x45400e88]
movzx edx, word [0x453c09c0]
movzx esi, word [0x45400ee6]
imul edx, esi
add edx, edx
add eax, 1
add edx, edx
cmp eax, edx
jl 0x10024b30
jmp 0x10024b6f
cmp dword [0x453c035c], 2
jge 0x10024b6f
call fcn.1000e510
call fcn.1000f140
mov eax, dword [0x453c0ad0]
test eax, eax
je 0x10024bd2
cmp dword [0x453c035c], 0
jne 0x10024bd2
test ebx, ebx
jne 0x10024b91
call fcn.10027b10
jmp 0x10024bd2
cmp ebx, 1
je 0x10024bcd
cmp dword [0x453c05a0], 3
ja 0x10024bcd
cmp ebx, 2
jne 0x10024bb2
cmp eax, 0x3e8
jbe 0x10024bb2
call fcn.1000ffa0
jmp 0x10024bd2
cmp eax, 9
jne 0x10024bc6
lea eax, [ebx + ebx - 3]
push eax
call fcn.10010850
add esp, 4
jmp 0x10024bd2
call fcn.10012890
jmp 0x10024bd2
call fcn.10027b50
cmp dword [0x45400eec], 0
je 0x10024c33
movzx ecx, word [0x453c09c0]
movzx edx, word [0x45400ee6]
imul ecx, edx
xor eax, eax
test ecx, ecx
mov dword [0x453c05a0], 3
jle 0x10024c33
lea esp, [esp]
mov edx, dword [0x45400e88]
movzx esi, word [edx + eax*8 + 2]
lea ecx, [edx + eax*8 + 2]
movzx edx, word [edx + eax*8 + 6]
add edx, esi
sar edx, 1
mov word [ecx], dx
movzx ecx, word [0x453c09c0]
movzx edx, word [0x45400ee6]
imul ecx, edx
add eax, 1
cmp eax, ecx
jl 0x10024c00
cmp dword [0x45400ee8], 0
jne 0x10024c7b
cmp dword [0x453c05a0], 3
jne 0x10024c53
call fcn.100133b0
cmp dword [0x45400ee8], 0
jne 0x10024c7b
mov esi, 2
cmp dword [0x453c0360], esi
jne 0x10024c74
call fcn.100135f0
cmp dword [0x45400ee8], 0
jne 0x10024c7b
cmp dword [0x453c0360], esi
jle 0x10024c7b
call fcn.10013b10
mov esi, dword [esp + 0x24]
test esi, esi
je 0x10024c88
call fcn.1001daa0
call fcn.10027a80
test esi, esi
je 0x10024c96
call fcn.1001dda0
mov eax, dword [0x453c0594]
cmp eax, 0x452dec80
jne 0x10024ca9
mov esi, 0x452f8dec
jmp 0x10024ccc
cmp dword [0x453c0370], 0
je 0x10024cc0
cmp eax, 0x452e98a0
jne 0x10024cc0
mov esi, 0x452f977c
jmp 0x10024ccc
mov eax, dword [0x453c05a0]
lea esi, [eax + eax*4 + 0x452f9763]
mov eax, dword [0x45400de4]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10024cd4
sub eax, edx
add eax, 0x40
push eax
call fcn.1002bb10
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10024d1a
mov eax, dword [0x45400de4]
push 0x452f97d4
push eax
push 0x452f84c8
push 0x3ea
call fcn.100285e0
push 1
push 0x453c0a80
call fcn.10027b90
add esp, 0x18
cmp dword [esp + 0x28], 0
je 0x10024e02
mov edx, dword [0x452f9758]
mov ecx, ebx
mov dword [ecx], edx
mov eax, dword [0x452f975c]
mov dword [ecx + 4], eax
mov edx, dword [0x452f9760]
mov dword [ecx + 8], edx
mov eax, dword [0x452f9764]
mov dword [ecx + 0xc], eax
cmp dword [0x453c0364], 0
je 0x10024d64
push ebx
push 0x452f9740
push 0x3ea
call fcn.100285e0
add esp, 0xc
call dword [0x453c0594]
mov ecx, dword [0x453e0d24]
push ecx
call fcn.10028d60
mov eax, dword [0x453e0ce8]
add esp, 4
cmp eax, 0x3e9
je 0x10024d8e
push eax
call fcn.10028d60
add esp, 4
mov eax, dword [0x453c08c0]
xor edi, edi
cmp eax, edi
je 0x10024da2
push eax
call fcn.1002bb90
add esp, 4
cmp ebx, edi
je 0x10024daf
push ebx
call fcn.1002bb90
add esp, 4
mov eax, dword [0x453c08a0]
cmp eax, edi
je 0x10024dc1
push eax
call fcn.1002bb90
add esp, 4
mov eax, dword [0x45400e88]
cmp eax, edi
je 0x10024dd3
push eax
call fcn.1002bb90
add esp, 4
cmp dword [0x453c033c], edi
je 0x10024f13
mov eax, dword [0x453c0338]
add eax, 1
cmp eax, dword [0x45400d84]
mov dword [0x453c0338], eax
jae 0x10024f0d
sub dword [esp + 0x14], 1
jmp 0x10024f13
mov ecx, dword [0x45400de4]
mov edx, ebx
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x10024e10
push 0x2e
push ebx
call fcn.1002e6e8
add esp, 8
test eax, eax
je 0x10024e30
mov byte [eax], 0
cmp dword [0x453c033c], 0
je 0x10024e81
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10024e40
mov ecx, dword [0x453c0338]
sub eax, edx
mov edx, dword [0x45400d84]
push ecx
add edx, 0xffffffff
push edx
push 0x452f8c50
push 0
push 0
mov edi, eax
call fcn.10028010
add esp, 0x10
push eax
lea eax, [ebx + edi]
push 0x452f9738
push eax
call fcn.1002fb40
add esp, 0x10
cmp dword [esp + 0x2c], 0
je 0x10024eb5
mov edi, ebx
add edi, 0xffffffff
lea ecx, [ecx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10024e90
mov ecx, dword [0x452f9730]
mov dword [edi], ecx
mov dx, word [0x452f9734]
mov word [edi + 4], dx
mov al, byte [0x452f9736]
mov byte [edi + 6], al
mov eax, esi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10024eb7
mov edi, ebx
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10024ec7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x452f972c
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.10029080
add esp, 8
test eax, eax
mov dword [0x453e0ce8], eax
jne 0x10024d48
push ebx
mov dword [esp + 0x1c], 1
call fcn.100293b0
jmp 0x10024d8b
mov dword [0x453c0338], edi
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
jl 0x10023f54
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret