Function at 0x45c730
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b7b82
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2cc4
call fcn.004a53e0
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x2cc0], eax
push ebx
push esi
push edi
mov eax, dword [0x4cc3b0]
xor eax, esp
push eax
lea eax, [esp + 0x2cd8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x269
mov ebx, ecx
mov dword [esp + 0x68], eax
call fcn.004612e0
push eax
lea ecx, [esp + 0x2d0]
push ecx
mov edx, 0x200
call fcn.0049c880
add esp, 8
lea edx, [esp + 0x2cc]
push edx
call fcn.004861b0
xor esi, esi
push esi
mov ecx, ebx
call fcn.0040b950
mov cl, byte [ebx + 0x8ed0]
mov byte [esp + 0x43], al
mov byte [esp + 0x13], cl
test al, al
je 0x45c81a
test cl, cl
jne 0x45c81a
cmp byte [ebx + 0x8ec7], cl
jne 0x45c81a
push esi
push esi
push esi
mov ecx, ebx
call fcn.00430ca0
push 0x26b
call fcn.004612e0
push eax
lea edx, [esp + 0x2d0]
push edx
mov edx, 0x200
call fcn.0049c880
add esp, 8
lea eax, [esp + 0x2cc]
push eax
call fcn.004861b0
xor eax, eax
cmp byte [ebx + 0x8ec8], al
sete al
jmp 0x45d49f
push ebx
lea ecx, [esp + 0xb0]
call fcn.00463380
mov dword [esp + 0x2ce0], esi
push 0x4ba988
mov ecx, ebx
call fcn.004109c0
push esi
test eax, eax
je 0x45cb04
lea ecx, [esp + 0x90]
call fcn.004583b0
mov byte [esp + 0x2ce0], 1
mov eax, dword [ebx + 0x8124]
mov ecx, dword [ebx + 0x8120]
push eax
push ecx
lea ecx, [esp + 0x94]
call fcn.00458150
push 8
lea edx, [esp + 0xc8]
push edx
lea ecx, [esp + 0x94]
call fcn.004582e0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x90]
call fcn.004581f0
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x90]
call fcn.00458240
mov byte [esp + 0x13], 1
mov byte [esp + 0x2ce0], 0
lea ecx, [esp + 0x8c]
call fcn.0040f450
push 0x26a
call fcn.004612e0
push eax
lea edx, [esp + 0x2d0]
push edx
mov edx, 0x200
call fcn.0049c880
add esp, 8
lea eax, [esp + 0x2cc]
push eax
call fcn.004861b0
mov eax, dword [ebx + 0x8eb4]
mov edi, dword [ebx + 0x8eb0]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
movzx eax, byte [esp + 0x13]
neg eax
sbb eax, eax
and eax, 0x1c
add eax, 0x1a
cmp byte [ebx + 0x8ec8], 0
mov dword [0x50160c], 0xffffffff
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], 0
je 0x45c93d
mov ecx, eax
not ecx
inc ecx
and ecx, 0xf
lea eax, [eax + ecx + 8]
cdq
add eax, dword [esp + 0x24]
adc edx, dword [esp + 0x28]
xor ecx, ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov byte [esp + 0x2ce0], 2
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], ecx
mov byte [esp + 0x2ce0], 3
mov ecx, dword [esp + 0x18]
push ecx
push edi
push edx
push eax
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x94]
mov edx, ebx
call fcn.0045c010
mov esi, dword [esp + 0x38]
shl esi, 9
push esi
call fcn.004a4c8c
add esp, 4
mov dword [esp + 0x74], eax
test eax, eax
jne 0x45c9c2
test esi, esi
je 0x45c9c2
mov ecx, 0x4d76b4
call fcn.00429090
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov byte [esp + 0x2ce0], 4
mov eax, dword [esp + 0x74]
push esi
push 0
push eax
call fcn.004a5410
add esp, 0xc
push 0
push 0
push 0
mov ecx, ebx
call fcn.00430ca0
cmp dword [esp + 0x18], 0
mov dword [esp + 0x34], 0
jl 0x45cf23
jg 0x45ca10
test edi, edi
jbe 0x45cf23
lea esp, [esp]
call fcn.0046b930
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov eax, edx
sub eax, edi
push esi
mov ecx, esi
sbb ecx, dword [esp + 0x1c]
push edx
push ecx
push eax
call fcn.0046a3a0
cdq
sub eax, edx
mov esi, eax
mov eax, dword [ebx + 0x13d8]
sar esi, 1
add esi, 0x32
cmp byte [eax + 0x3934], 0
jne 0x45ca64
cmp esi, dword [0x50160c]
je 0x45ca64
push 0
push 0x64
mov eax, esi
cdq
push edx
push eax
push 0x4bde54
call fcn.00409c80
mov ecx, dword [esp + 0x6c]
mov dword [0x50160c], esi
cmp dword [esp + 0x34], ecx
jae 0x45cac4
mov ecx, ebx
call fcn.00430500
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x34]
cmp edx, dword [ecx + esi*8 + 4]
jl 0x45cac4
jg 0x45ca94
mov edx, ecx
mov ecx, esi
cmp eax, dword [edx + ecx*8]
jb 0x45cac4
mov edx, dword [esp + 0x80]
mov esi, dword [esp + 0x34]
mov eax, dword [edx + esi*4]
cdq
push 1
push edx
push eax
mov ecx, ebx
call fcn.00430ca0
mov eax, dword [esp + 0x80]
mov eax, dword [eax + esi*4]
cdq
sub edi, eax
sbb dword [esp + 0x18], edx
inc esi
mov dword [esp + 0x34], esi
cmp dword [esp + 0x18], 0
jg 0x45ceb0
jl 0x45cadd
cmp edi, 0x200
jae 0x45ceb0
mov ecx, 0x200
sub ecx, edi
push ecx
lea edx, [esp + edi + 0xd0]
push 0
push edx
mov esi, edi
call fcn.004a5410
add esp, 0xc
xor edi, edi
mov dword [esp + 0x18], edi
jmp 0x45cec0
mov edx, dword [ebx + 0x8ecc]
push esi
push edx
mov ecx, ebx
call fcn.00430ca0
push 0x78
mov ecx, ebx
call fcn.00410960
test eax, eax
je 0x45cb53
mov ax, word [ebx + 0x8ed2]
cmp ax, word [ebx + 0x81ec]
jne 0x45cb53
movzx ecx, word [ebx + 0x81fe]
mov edx, dword [ebx + 0x8200]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], esi
mov byte [esp + 0x13], 0
jmp 0x45c8c2
cmp byte [esp + 0x43], 0
je 0x45cbdf
cmp byte [esp + 0x13], 0
jne 0x45cbdf
cmp byte [ebx + 0x8ec8], 0
je 0x45cbdf
push 0x26b
call fcn.004612e0
push eax
lea eax, [esp + 0x2d0]
push eax
mov edx, 0x200
call fcn.0049c880
add esp, 8
lea ecx, [esp + 0x2cc]
push ecx
call fcn.004861b0
push 0x274
call fcn.004612e0
push eax
add ebx, 0x418
push ebx
call fcn.00493af0
add esp, 8
push 0xa
mov ecx, 0x4d76b4
call fcn.00428f00
mov dword [esp + 0x2ce0], 0xffffffff
lea ecx, [esp + 0xac]
call fcn.004633b0
xor eax, eax
jmp 0x45d49f
push esi
push esi
push esi
mov ecx, ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [ebx + 0x8eb0], esi
mov dword [ebx + 0x8eb4], esi
call fcn.00430ca0
push 0x2000
lea edx, [esp + 0xcd0]
push edx
mov ecx, ebx
call fcn.00430fb0
cmp eax, esi
je 0x45ce46
lea esp, [esp]
add eax, 0xffffffce
cmp eax, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x44], eax
jle 0x45ce09
mov edx, 0x20
lea edi, [esp + 0xcce]
sub edx, str.Protect
mov dword [esp + 0x30], edi
mov dword [esp + 0x50], edx
jmp 0x45cc54
mov edx, dword [esp + 0x50]
cmp byte [edi], 0x7a
lea esi, [edi - 2]
jne 0x45cd3c
mov ecx, 8
mov eax, str.Protect
add edx, edi
lea esp, [esp]
mov edi, dword [eax + edx]
cmp edi, dword [eax]
jne 0x45cd3c
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x45cc70
movzx ax, byte [esi + 1]
movzx dx, byte [esi]
mov ecx, pe_nt_image_headers32
imul ax, cx
add ax, dx
not ax
movzx edi, ax
push 0x34
lea eax, [esi + 2]
push eax
push 0xffffffffffffffff
call fcn.00420a10
cmp di, ax
jne 0x45cd8f
movzx ecx, byte [esi + 0x2d]
movzx edx, byte [esi + 0x2c]
movzx eax, byte [esi + 0x2b]
movzx edi, byte [esi + 0x30]
shl ecx, 8
add ecx, edx
movzx edx, byte [esi + 0x2a]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 0x35]
shl ecx, 8
add ecx, edx
movzx edx, byte [esi + 0x33]
mov dword [esp + 0x38], ecx
movzx ecx, byte [esi + 0x34]
shl eax, 8
add eax, ecx
movzx ecx, byte [esi + 0x32]
shl eax, 8
add eax, edx
movzx edx, byte [esi + 0x31]
shl edx, 8
add edx, edi
movzx edi, byte [esi + 0x2f]
movzx esi, byte [esi + 0x2e]
shl edx, 8
add edx, edi
push 1
shl eax, 8
add eax, ecx
xor edi, edi
push edi
xor ecx, ecx
push ecx
shl edx, 8
push eax
add esi, edx
call fcn.004a5a10
add esi, eax
adc edi, edx
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], edi
mov byte [esp + 0x13], 1
jmp 0x45cdee
cmp byte [esi + 2], 0x78
jne 0x45cd8f
mov eax, str.Protect_
mov edx, esi
sub edx, eax
mov ecx, 8
lea edi, [edx + 0x12]
mov edx, dword [eax + edi]
cmp edx, dword [eax]
jne 0x45cd8f
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x45cd53
movzx edi, byte [esi + 1]
movzx eax, byte [esi]
shl edi, 8
add edi, eax
push 0x18
lea eax, [esi + 2]
push eax
not edi
push 0xffffffffffffffff
and edi, 0xffff
call fcn.00420a10
and eax, 0xffff
cmp edi, eax
je 0x45cdad
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x30]
inc eax
inc edi
cmp eax, dword [esp + 0x44]
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], edi
jl 0x45cc50
jmp 0x45ce07
movzx eax, byte [esi + 0xd]
movzx ecx, byte [esi + 0xc]
movzx edx, byte [esi + 0x11]
shl eax, 8
add eax, ecx
movzx ecx, byte [esi + 0xf]
mov dword [esp + 0x38], eax
movzx eax, byte [esi + 0x10]
shl edx, 8
add edx, eax
movzx eax, byte [esi + 0xe]
shl edx, 8
add edx, ecx
shl edx, 8
add edx, eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], 0
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x20]
cdq
add eax, dword [esp + 0x24]
adc edx, dword [esp + 0x28]
mov dword [ebx + 0x8eb0], eax
mov dword [ebx + 0x8eb4], edx
xor esi, esi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add eax, 0x1fce
adc ecx, esi
push esi
push ecx
mov dword [esp + 0x30], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x30], eax
call fcn.00430ca0
push 0x2000
lea ecx, [esp + 0xcd0]
push ecx
mov ecx, ebx
call fcn.00430fb0
cmp eax, esi
jne 0x45cc20
mov edx, dword [ebx + 0x8eb0]
or edx, dword [ebx + 0x8eb4]
jne 0x45c8c2
push esi
push esi
push esi
mov ecx, ebx
call fcn.00430ca0
push 0x26b
call fcn.004612e0
push eax
lea eax, [esp + 0x2d0]
push eax
mov edx, 0x200
call fcn.0049c880
add esp, 8
lea ecx, [esp + 0x2cc]
push ecx
call fcn.004861b0
mov dword [esp + 0x2ce0], 0xffffffff
lea ecx, [esp + 0xac]
call fcn.004633b0
mov eax, 1
jmp 0x45d49f
add edi, 0xfffffe00
adc dword [esp + 0x18], 0xffffffff
mov esi, 0x200
push esi
lea eax, [esp + 0xd0]
push eax
mov ecx, ebx
call fcn.00430fb0
mov eax, dword [esp + 0x2c]
shl eax, 9
add eax, dword [esp + 0x74]
lea esi, [esp + 0xcc]
sub esi, eax
mov ecx, 0x200
lea esp, [esp]
mov dl, byte [esi + eax]
xor byte [eax], dl
inc eax
sub ecx, 1
jne 0x45cef0
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x38]
jb 0x45cf0e
mov dword [esp + 0x2c], ecx
cmp dword [esp + 0x18], 0
jg 0x45ca10
jl 0x45cf23
test edi, edi
ja 0x45ca10
xor edi, edi
push edi
push 0x64
push edi
push 0x64
call fcn.0046a3a0
cdq
sub eax, edx
mov esi, eax
mov eax, dword [ebx + 0x13d8]
sar esi, 1
add esi, 0x32
cmp byte [eax + 0x3934], 0
jne 0x45cf63
cmp esi, dword [0x50160c]
je 0x45cf63
push edi
push 0x64
mov eax, esi
cdq
push edx
push eax
push 0x4bde54
call fcn.00409c80
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
push edi
push edi
push 2
push eax
push ecx
mov dword [0x50160c], esi
call fcn.004a5a10
add eax, dword [esp + 0x60]
mov ecx, ebx
adc edx, dword [esp + 0x64]
push edx
push eax
call fcn.00430ca0
mov dword [esp + 0x30], edi
cmp dword [esp + 0x38], edi
jbe 0x45cff4
mov edi, dword [esp + 0x74]
lea esi, [esp + 0xcc]
sub esi, edi
jmp 0x45cfb0
push 0x200
lea edx, [esp + 0xd0]
push edx
mov ecx, ebx
call fcn.00430fb0
mov eax, edi
mov edi, 0x200
jmp 0x45cfd0
mov cl, byte [esi + eax]
xor byte [eax], cl
inc eax
sub edi, 1
jne 0x45cfd0
mov ecx, dword [esp + 0x30]
inc ecx
sub esi, 0x200
mov dword [esp + 0x30], ecx
mov edi, eax
cmp ecx, dword [esp + 0x38]
jb 0x45cfb0
xor edi, edi
push edi
push edi
push edi
mov ecx, ebx
call fcn.00430ca0
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0x28]
cmp eax, edi
mov dword [esp + 0xc4], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
jl 0x45d3f5
jg 0x45d04e
test ecx, ecx
jbe 0x45d3f5
mov dword [esp + 0x48], 0
call fcn.0046b930
mov esi, dword [esp + 0x34]
cmp esi, dword [esp + 0x6c]
jae 0x45d0a8
mov ecx, ebx
call fcn.00430500
mov ecx, dword [esp + 0x68]
cmp edx, dword [ecx + esi*8 + 4]
jl 0x45d0a8
jg 0x45d07d
cmp eax, dword [ecx + esi*8]
jb 0x45d0a8
mov edi, dword [esp + 0x80]
mov eax, dword [edi + esi*4]
cdq
push 1
push edx
push eax
mov ecx, ebx
call fcn.00430ca0
mov eax, dword [edi + esi*4]
mov ecx, dword [esp + 0x14]
cdq
sub ecx, eax
sbb dword [esp + 0x18], edx
inc esi
mov dword [esp + 0x34], esi
jmp 0x45d0ac
mov ecx, dword [esp + 0x14]
xor edi, edi
cmp dword [esp + 0x18], edi
jg 0x45d0e3
jl 0x45d0be
cmp ecx, 0x200
jae 0x45d0e3
mov edx, 0x200
sub edx, ecx
push edx
lea eax, [esp + ecx + 0xd0]
push edi
push eax
mov esi, ecx
call fcn.004a5410
add esp, 0xc
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
jmp 0x45d0f7
add ecx, 0xfffffe00
adc dword [esp + 0x18], 0xffffffff
mov esi, 0x200
mov dword [esp + 0x14], ecx
push esi
lea ecx, [esp + 0xd0]
push ecx
mov ecx, ebx
call fcn.00430fb0
mov ecx, dword [esp + 0x64]
push eax
lea edx, [esp + 0xd0]
push edx
mov dword [esp + 0x64], eax
call fcn.00430d80
push 0x200
lea eax, [esp + 0xd0]
push eax
push 0xffffffffffffffff
call fcn.00420a10
mov esi, eax
push ebx
lea ecx, [esp + 0x90]
and esi, 0xffff
call fcn.00463380
mov byte [esp + 0x2ce0], 5
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xc4]
push 0
push ecx
push edx
mov ecx, ebx
call fcn.00430ca0
mov ecx, ebx
call fcn.004310b0
mov ecx, ebx
movzx edi, al
call fcn.004310b0
movzx eax, al
shl eax, 8
add edi, eax
add dword [esp + 0xc4], 2
mov dword [esp + 0x44], edi
adc dword [esp + 0xc8], 0
mov byte [esp + 0x2ce0], 4
lea ecx, [esp + 0x8c]
call fcn.004633b0
cmp edi, esi
jne 0x45d20b
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x45d1fe
mov ecx, dword [esp + 0x48]
push ecx
mov edx, eax
shl edx, 9
push edx
push eax
push 0x26c
call fcn.004612e0
push eax
lea eax, [esp + 0x6dc]
push eax
mov edx, 0x200
call fcn.0049c880
add esp, 0x14
lea ecx, [esp + 0x6cc]
push ecx
call fcn.004861b0
push 0x26e
call fcn.004612e0
push eax
call fcn.004861b0
mov dword [esp + 0x3c], 0xffffffff
jmp 0x45d365
mov eax, dword [esp + 0x2c]
shl eax, 9
add eax, dword [esp + 0x74]
mov ecx, 0x80
lea esi, [esp + 0xcc]
lea edi, [esp + 0xacc]
rep movsd dword es:[edi], dword [esi]
mov edi, eax
lea edx, [esp + 0xcc]
xor esi, esi
sub edi, edx
mov dword [esp + 0x50], edi
lea esp, [esp]
lea eax, [esp + esi + 0xcc]
mov cl, byte [edi + eax]
xor byte [eax], cl
inc esi
cmp esi, 0x200
jb 0x45d240
push 0x200
lea edx, [esp + 0xd0]
push edx
push 0xffffffffffffffff
call fcn.00420a10
and eax, 0xffff
cmp dword [esp + 0x44], eax
je 0x45d4c5
mov dword [esp + 0x4c], 0x40
mov ecx, 0x80
lea esi, [esp + 0xacc]
lea edi, [esp + 0xcc]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x4c]
xor esi, esi
test edi, edi
jle 0x45d2b4
mov ecx, dword [esp + 0x50]
lea eax, [esp + esi + 0xcc]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc esi
cmp esi, edi
jl 0x45d2a3
push 0x200
lea eax, [esp + 0xd0]
push eax
push 0xffffffffffffffff
call fcn.00420a10
and eax, 0xffff
cmp dword [esp + 0x44], eax
je 0x45d4c5
mov eax, dword [esp + 0x4c]
mov ecx, 0x80
lea esi, [esp + 0xacc]
lea edi, [esp + 0xcc]
rep movsd dword es:[edi], dword [esi]
cmp eax, 0x200
jae 0x45d319
mov esi, dword [esp + 0x50]
jmp 0x45d300
lea ecx, [esi + eax]
mov dl, byte [esp + ecx + 0xcc]
xor byte [esp + eax + 0xcc], dl
inc eax
cmp eax, 0x200
jb 0x45d300
push 0x200
lea eax, [esp + 0xd0]
push eax
push 0xffffffffffffffff
call fcn.00420a10
and eax, 0xffff
cmp dword [esp + 0x44], eax
je 0x45d4c5
mov eax, dword [esp + 0x4c]
add eax, 0x40
cmp eax, 0x100
mov dword [esp + 0x4c], eax
jl 0x45d280
inc dword [esp + 0x30]
cmp dword [esp + 0x3c], 0xffffffff
jne 0x45d365
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x2c]
inc dword [esp + 0x20]
add dword [esp + 0x48], 0x200
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x38]
jb 0x45d388
mov dword [esp + 0x2c], 0
cmp dword [esp + 0x18], 0
jg 0x45d056
jl 0x45d3a0
cmp dword [esp + 0x14], 0
ja 0x45d056
mov ecx, dword [esp + 0x3c]
cmp ecx, 0xffffffff
je 0x45d3f5
mov eax, dword [esp + 0x20]
shl eax, 9
push eax
mov edx, ecx
shl edx, 9
push edx
push ecx
push 0x26c
call fcn.004612e0
push eax
lea eax, [esp + 0x6dc]
push eax
mov edx, 0x200
call fcn.0049c880
add esp, 0x14
lea ecx, [esp + 0x6cc]
push ecx
call fcn.004861b0
push 0x26e
call fcn.004612e0
push eax
call fcn.004861b0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push 0
push edx
push eax
mov ecx, ebx
call fcn.00430ca0
mov ecx, dword [esp + 0x64]
push 0x7fffffff
push 0x7fffffff
push ecx
mov ecx, ebx
call fcn.004310e0
push 0
push 0
push 0
mov ecx, ebx
call fcn.00430ca0
mov eax, dword [esp + 0x30]
neg eax
sbb eax, eax
and eax, 2
mov esi, eax
mov byte [esp + 0x2ce0], 3
mov eax, dword [esp + 0x74]
test eax, eax
je 0x45d451
push eax
call fcn.004a4d4f
add esp, 4
mov byte [esp + 0x2ce0], 2
mov eax, dword [esp + 0x80]
test eax, eax
je 0x45d46d
push eax
call fcn.004a4d4f
add esp, 4
mov byte [esp + 0x2ce0], 0
mov eax, dword [esp + 0x68]
test eax, eax
je 0x45d486
push eax
call fcn.004a4d4f
add esp, 4
mov dword [esp + 0x2ce0], 0xffffffff
lea ecx, [esp + 0xac]
call fcn.004633b0
mov eax, esi
mov ecx, dword [esp + 0x2cd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2cc0]
xor ecx, esp
call fcn.004a4bb3
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x48]
cmp eax, 0xffffffff
je 0x45d517
push esi
mov ecx, eax
shl ecx, 9
push ecx
push eax
push 0x26c
call fcn.004612e0
push eax
lea edx, [esp + 0x6dc]
push edx
mov edx, 0x200
call fcn.0049c880
add esp, 0x14
lea eax, [esp + 0x6cc]
push eax
call fcn.004861b0
push 0x26e
call fcn.004612e0
push eax
call fcn.004861b0
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x45d566
lea ecx, [esi + 0x200]
push ecx
push esi
push eax
push 0x26c
call fcn.004612e0
push eax
lea edx, [esp + 0x6dc]
push edx
mov edx, 0x200
call fcn.0049c880
add esp, 0x14
lea eax, [esp + 0x6cc]
push eax
call fcn.004861b0
push 0x26d
call fcn.004612e0
push eax
call fcn.004861b0
mov esi, dword [esp + 0x64]
push 0
mov ecx, esi
mov dword [esp + 0x40], 0xffffffff
call fcn.00430500
mov edi, dword [esp + 0x60]
xor ecx, ecx
sub eax, edi
sbb edx, ecx
push edx
push eax
mov ecx, esi
call fcn.00430ca0
push edi
lea edx, [esp + 0xd0]
push edx
mov ecx, esi
call fcn.00430d80
jmp 0x45d365