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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
push ebx
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 8]
push eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
push eax
push 0x1b
push edi
call fcn.00461100
mov esi, eax
add esp, 0x10
mov dword [esp + 0x4c], esi
test esi, esi
jne 0x45b625
mov eax, dword [edi + 0x110]
mov ebx, dword [esp + 0x44]
cdq
push edx
push eax
push 1
push ebx
call fcn.0043bf40
mov eax, dword [edi + 0xf8]
cdq
push edx
push eax
push 2
push ebx
call fcn.0043bf40
add esp, 0x20
lea ecx, [ecx]
push ebx
call fcn.0043d520
add esp, 4
cmp eax, 0x64
jne 0x45b189
push 0
push ebx
call fcn.00449d00
push eax
call fcn.004aab80
add esp, 0xc
mov dword [esp + 0x5c], eax
test ebx, ebx
je 0x45b144
mov eax, dword [ebx]
mov ecx, dword [ebx + 0x50]
cmp byte [eax + 0x41], 0
jne 0x45b125
cmp ecx, 0xc0a
je 0x45b125
mov eax, dword [eax + 0x38]
and eax, ecx
jmp 0x45b12e
push eax
call fcn.00443ae0
add esp, 4
mov dword [ebx + 0x50], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x45b144
push eax
call dword [0x4e25c4]
add esp, 4
mov eax, dword [ebp + 8]
xor edi, edi
cmp dword [eax + 0xf8], edi
jle 0x45b181
mov ebx, dword [esp + 0x5c]
lea ecx, [esp + 0x4c]
push ecx
push edi
push ebx
push eax
call fcn.00452fd0
xor dword [esp + 0x60], eax
inc edi
mov eax, dword [ebp + 8]
add esp, 0x10
xor dword [esp + 0x54], edx
cmp edi, dword [eax + 0xf8]
jl 0x45b155
mov esi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x44]
test esi, esi
je 0x45b0e0
push ebx
call fcn.0043e460
add esp, 4
test esi, esi
jne 0x45b1d5
mov esi, eax
test eax, eax
jne 0x45b1d5
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x24]
push dword [ebx + 0xd8]
push str.SELECT__s
mov eax, dword [eax]
mov dword [esp + 0x64], eax
mov dword [esp + 0x30], esi
call fcn.00437c10
mov edi, eax
add esp, 8
test edi, edi
jne 0x45b1ff
lea esi, [eax + 7]
mov edi, dword [esp + 0x28]
push edi
call fcn.0043e3a0
add esp, 4
mov eax, dword [esp + 0x50]
cmp eax, dword [esp + 0x3c]
jne 0x45b1ed
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x40]
je 0x45b625
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [esp + 0x2c]
push eax
push 0
push 1
push 0xffffffffffffffff
push edi
push dword [ebx + 0xc]
call fcn.00491b90
push edi
mov esi, eax
call fcn.00438320
add esp, 0x20
test esi, esi
jne 0x45b1c8
mov edi, dword [esp + 0x28]
push edi
call fcn.0043d520
add esp, 4
cmp eax, 0x64
jne 0x45b1c8
mov edi, dword [esp + 0x28]
mov ebx, edi
test edi, edi
je 0x45b2c5
cmp dword [edi + 0x14], 0
lea eax, [edi + 0x14]
mov dword [esp + 0x4c], eax
je 0x45b278
xor eax, eax
cmp ax, word [edi + 0x54]
jae 0x45b278
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x45b270
push eax
call dword [0x4e25bc]
mov edi, dword [esp + 0x2c]
add esp, 4
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx]
jmp 0x45b2ca
mov eax, dword [edi]
test eax, eax
je 0x45b2c5
mov eax, dword [eax + 0xc]
test eax, eax
je 0x45b28f
push eax
call dword [0x4e25bc]
add esp, 4
mov eax, dword [edi]
mov dword [eax + 0x34], 0x19
mov eax, dword [eax + 0xec]
test eax, eax
je 0x45b2c1
mov ecx, 0x2460
test word [eax + 8], cx
je 0x45b2b8
push eax
call fcn.004b6f80
add esp, 4
jmp 0x45b2c1
mov ecx, 1
mov word [eax + 8], cx
mov edi, dword [esp + 0x28]
mov ecx, 0x4d9e30
movzx eax, word [ecx + 8]
test al, 4
je 0x45b2e1
mov eax, dword [ecx]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x30], eax
jmp 0x45b357
test al, 8
je 0x45b2ff
fld qword [ecx]
sub esp, 8
fstp qword [esp]
call fcn.0044d120
add esp, 8
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edx
jmp 0x45b357
test al, 0x12
je 0x45b347
movzx eax, byte [ecx + 0xa]
push eax
push dword [ecx + 0xc]
lea eax, [esp + 0x78]
mov dword [esp + 0x78], 0
push eax
push dword [ecx + 0x10]
mov dword [esp + 0x84], 0
call fcn.00477be0
mov eax, dword [esp + 0x80]
add esp, 0x10
mov edi, dword [esp + 0x28]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x30], eax
jmp 0x45b357
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
test ebx, ebx
je 0x45b398
mov eax, dword [ebx]
mov ecx, dword [ebx + 0x50]
cmp byte [eax + 0x41], 0
jne 0x45b375
cmp ecx, 0xc0a
je 0x45b375
mov eax, dword [eax + 0x38]
and eax, ecx
jmp 0x45b37e
push eax
call fcn.00443ae0
add esp, 4
mov dword [ebx + 0x50], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x45b394
push eax
call dword [0x4e25c4]
add esp, 4
mov edi, dword [esp + 0x28]
mov eax, dword [ebp + 8]
mov dword [esp + 0x2c], 0
cmp dword [eax + 0x2c], 0
je 0x45b493
mov eax, dword [eax + 0x18]
inc eax
push eax
push edi
call fcn.00449d00
mov ecx, eax
add esp, 8
movzx eax, word [ecx + 8]
test al, 4
je 0x45b3d7
mov eax, dword [ecx]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x6c], eax
jmp 0x45b44f
test al, 8
je 0x45b3f5
fld qword [ecx]
sub esp, 8
fstp qword [esp]
call fcn.0044d120
add esp, 8
mov dword [esp + 0x2c], eax
mov dword [esp + 0x6c], edx
jmp 0x45b44f
test al, 0x12
je 0x45b43f
movzx eax, byte [ecx + 0xa]
push eax
push dword [ecx + 0xc]
lea eax, [esp + 0x80]
mov dword [esp + 0x80], 0
push eax
push dword [ecx + 0x10]
mov dword [esp + 0x8c], 0
call fcn.00477be0
mov eax, dword [esp + 0x88]
add esp, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x6c], eax
jmp 0x45b44f
mov dword [esp + 0x2c], 0
mov dword [esp + 0x6c], 0
test edi, edi
je 0x45b48c
mov eax, dword [edi]
mov ecx, dword [edi + 0x50]
cmp byte [eax + 0x41], 0
jne 0x45b46d
cmp ecx, 0xc0a
je 0x45b46d
mov eax, dword [eax + 0x38]
and eax, ecx
jmp 0x45b476
push eax
call fcn.00443ae0
add esp, 4
mov dword [edi + 0x50], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x45b48c
push eax
call dword [0x4e25c4]
add esp, 4
mov edi, dword [esp + 0x28]
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x44], ebx
lea esp, [esp]
cmp ebx, dword [eax + 0x18]
jge 0x45b228
mov eax, dword [eax + 0x20]
cmp byte [ebx + eax], 0
jne 0x45b610
lea esi, [ebx + 1]
push esi
push edi
call fcn.0043e0f0
push esi
push dword [esp + 0x34]
mov edi, eax
call fcn.0043dba0
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x48]
push ecx
push eax
push edi
mov edi, dword [ebp + 8]
push esi
mov dword [esp + 0x58], 0
push dword [edi + 0x24]
call fcn.00489c80
mov ecx, dword [esp + 0x5c]
mov edi, eax
add esp, 0x24
test edi, edi
jne 0x45b5f2
jmp 0x45b508
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x44]
lea eax, [esp + 0x4c]
mov dword [esp + 0x48], 0
push eax
lea eax, [esp + 0x64]
mov dword [esp + 0x68], 0
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x68], 0
push eax
lea eax, [esp + 0x54]
mov dword [esp + 0x58], 0
push eax
lea eax, [esp + 0x68]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov eax, dword [eax + 0x14]
call eax
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x45b5ee
push dword [esp + 0x4c]
push ebx
push dword [esp + 0x38]
push dword [esp + 0x40]
push eax
push esi
push dword [esp + 0x60]
push dword [esp + 0x74]
call fcn.00452f20
xor dword [esp + 0x5c], eax
lea esi, [edi + 1]
mov eax, dword [ebp + 8]
add esp, 0x20
xor dword [esp + 0x40], edx
mov ecx, dword [esp + 0x38]
mov ebx, dword [eax + 0xf8]
cmp ebx, esi
jle 0x45b500
mov eax, dword [eax + 0xfc]
mov edi, 0x18
mov dword [esp + 0x68], eax
mov eax, dword [edi + eax]
cmp eax, dword [esp + 0x48]
jg 0x45b5d9
push dword [esp + 0x4c]
push dword [esp + 0x48]
push dword [esp + 0x38]
push dword [esp + 0x40]
push esi
push dword [esp + 0x40]
push eax
push dword [esp + 0x74]
call fcn.00452f20
xor dword [esp + 0x5c], eax
add esp, 0x20
xor dword [esp + 0x40], edx
mov eax, dword [esp + 0x68]
inc esi
add edi, 0x18
cmp esi, ebx
jl 0x45b5a6
mov ecx, dword [esp + 0x38]
jmp 0x45b500
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x45b603
mov eax, dword [esp + 0x5c]
push ecx
mov eax, dword [eax + 0x10]
call eax
add esp, 4
lea esi, [edi - 0x65]
neg esi
sbb esi, esi
and esi, edi
mov edi, dword [esp + 0x28]
inc ebx
mov dword [esp + 0x44], ebx
test esi, esi
jne 0x45b1cc
mov eax, dword [ebp + 8]
jmp 0x45b4a0
mov eax, dword [ebp + 0xc]
pop edi
mov dword [eax], 1
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret