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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0xc], edx
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x59a2e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
mov al, byte [ebp - 5]
cmp byte [eax + 0xce454c], 0
jne 0x59a2ba
xor eax, eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov word [ebp - 0x58], ax
xor eax, eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, 0x68
call fcn.00403464
lea edx, [ebp - 0x68]
xor eax, eax
mov al, byte [ebp - 5]
call fcn.005ab790
cmp dword [ebp - 0x68], 0
je 0x59a2ba
mov eax, dword [ebp - 0x68]
mov edx, 0x59a2fc
call fcn.00405698
je 0x59a2ba
lea eax, [ebp - 0x64]
xor edx, edx
mov dl, byte [ebp - 5]
mov edx, dword [edx*4 + 0x120a83c]
call fcn.00405324
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 2
movzx eax, word [eax]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 6
mov ax, word [eax]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0xc
mov ax, word [eax]
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0xa
mov ax, word [eax]
mov word [ebp - 0x16], ax
mov word [ebp - 0x16], 0x200
cmp dword [ebp - 0x3c], 0
jne 0x5997c0
cmp word [ebp - 0x14], 0
jne 0x5997c0
xor eax, eax
mov al, byte [ebp - 5]
call fcn.004f6908
test al, al
je 0x5997c0
mov word [ebp - 0x14], 1
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 8
mov ax, word [eax]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0x2a
mov ax, word [eax]
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0x2c
mov ax, word [eax]
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0x28
mov ax, word [eax]
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x64]
call fcn.004057a4
mov ax, word [eax]
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0x60
mov ax, word [eax]
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0x62
mov ax, word [eax]
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0x5e
mov ax, word [eax]
mov word [ebp - 0x26], ax
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0xb0
mov ax, word [eax]
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0xa4
mov ax, word [eax]
mov word [ebp - 0x2a], ax
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0x6c
mov ax, word [eax]
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0x6e
mov ax, word [eax]
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0x70
mov ax, word [eax]
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0xa0
mov ax, word [eax]
mov word [ebp - 0x32], ax
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0xa6
mov ax, word [eax]
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0x96
mov ax, word [eax]
mov word [ebp - 0x36], ax
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0x100
mov ax, word [eax]
mov edx, dword [ebp - 0xc]
mov word [edx + 0x30], ax
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0x78
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
xor eax, eax
mov dword [ebp - 0x70], eax
fild qword [ebp - 0x74]
fstp xword [ebp - 0x50]
wait
fld xword [ebp - 0x50]
fld xword [0x59a304]
fcompp
fnstsw ax
sahf
jne 0x599998
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0xcc
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
xor eax, eax
mov dword [ebp - 0x70], eax
fild qword [ebp - 0x74]
fstp xword [ebp - 0x50]
wait
fld xword [ebp - 0x50]
fcomp dword [0x59a310]
fnstsw ax
sahf
jbe 0x599962
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov word [ebp - 0x48], ax
fld xword [ebp - 0x50]
fmul dword [0x59a310]
fmul dword [0x59a310]
fstp xword [ebp - 0x50]
wait
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0xc8
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
xor eax, eax
mov dword [ebp - 0x70], eax
fild qword [ebp - 0x74]
fld xword [ebp - 0x50]
faddp st(1)
fstp xword [ebp - 0x50]
wait
mov eax, dword [ebp - 0x64]
mov al, byte [eax + 0x67]
mov byte [ebp - 1], al
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0x80
mov ax, word [eax]
mov word [ebp - 4], ax
push eax
mov al, byte [ebp - 1]
test word [ebp - 4], 1
je 0x5999c3
mov al, 3
test word [ebp - 4], 2
je 0x5999cd
mov al, 4
mov byte [ebp - 1], al
pop eax
mov byte [ebp - 0x69], 1
mov eax, dword [ebp - 0x64]
mov al, byte [eax + 0x36]
mov edx, dword [ebp - 0x64]
cmp al, byte [edx + 0x38]
jne 0x599a4e
mov eax, dword [ebp - 0x64]
mov al, byte [eax + 0x36]
mov edx, dword [ebp - 0x64]
cmp al, byte [edx + 0x3a]
jne 0x599a4e
mov eax, dword [ebp - 0x64]
mov al, byte [eax + 0x36]
mov edx, dword [ebp - 0x64]
cmp al, byte [edx + 0x3c]
jne 0x599a4e
mov eax, dword [ebp - 0x64]
mov al, byte [eax + 0x36]
mov edx, dword [ebp - 0x64]
cmp al, byte [edx + 0x3e]
jne 0x599a4e
mov eax, dword [ebp - 0x64]
mov al, byte [eax + 0x37]
mov edx, dword [ebp - 0x64]
cmp al, byte [edx + 0x39]
jne 0x599a4e
mov eax, dword [ebp - 0x64]
mov al, byte [eax + 0x37]
mov edx, dword [ebp - 0x64]
cmp al, byte [edx + 0x3b]
jne 0x599a4e
mov eax, dword [ebp - 0x64]
mov al, byte [eax + 0x37]
mov edx, dword [ebp - 0x64]
cmp al, byte [edx + 0x3d]
jne 0x599a4e
mov eax, dword [ebp - 0x64]
mov al, byte [eax + 0x37]
mov edx, dword [ebp - 0x64]
cmp al, byte [edx + 0x3f]
jne 0x599a4e
mov byte [ebp - 0x69], 0
jmp 0x599c3e
cmp word [ebp - 0x12], 0xffff
jne 0x599a5f
mov byte [ebp - 0x69], 0
jmp 0x599c3e
movzx eax, word [ebp - 0x12]
cmp eax, dword [ebp - 0x3c]
jne 0x599a7a
movzx eax, word [ebp - 0x14]
cmp eax, dword [ebp - 0x3c]
jne 0x599a7a
mov byte [ebp - 0x69], 0
jmp 0x599c3e
cmp word [ebp - 0x16], 0
je 0x599a89
cmp word [ebp - 0x16], 0x2710
jbe 0x599ae9
lea eax, [ebp - 0x78]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0x64]
call fcn.004057ac
mov eax, dword [ebp - 0x78]
mov edx, 0x59a31c
call fcn.00405698
jne 0x599ab6
mov word [ebp - 0x16], 0x248
jmp 0x599ae9
lea eax, [ebp - 0x7c]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 0x64]
call fcn.004057ac
mov eax, dword [ebp - 0x7c]
mov edx, 0x59a328
call fcn.00405698
jne 0x599ae3
mov word [ebp - 0x16], 0x258
jmp 0x599ae9
mov word [ebp - 0x16], 0x200
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0xd4
mov ax, word [eax]
mov word [ebp - 0x10], ax
test byte [ebp - 0xf], 0x10
je 0x599b31
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0xea
mov ax, word [eax]
mov word [ebp - 0x10], ax
cmp word [ebp - 0x10], 0x100
jb 0x599b31
cmp word [ebp - 0x10], 0x8000
jae 0x599b31
mov ax, word [ebp - 0x10]
add eax, eax
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 0x2c]
cmp eax, dword [ebp - 0x3c]
jle 0x599b41
movzx eax, word [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
mov ax, word [ebp - 0x2e]
cmp ax, word [ebp - 0x12]
jbe 0x599b53
mov ax, word [ebp - 0x2e]
mov word [ebp - 0x12], ax
mov ax, word [ebp - 0x30]
cmp ax, word [ebp - 0x14]
jbe 0x599b65
mov ax, word [ebp - 0x30]
mov word [ebp - 0x14], ax
cmp word [ebp - 0x12], 0
je 0x599b9c
cmp word [ebp - 0x14], 0
je 0x599b9c
movzx eax, word [ebp - 0x12]
mov dword [ebp - 0x80], eax
fild dword [ebp - 0x80]
fld xword [ebp - 0x50]
fdivrp st(1)
movzx eax, word [ebp - 0x14]
mov dword [ebp - 0x84], eax
fild dword [ebp - 0x84]
fdivp st(1)
call fcn.00402d78
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x3c]
jle 0x599baa
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
movzx eax, word [ebp - 0x1a]
movzx edx, word [ebp - 0x16]
shr edx, 8
imul edx
test eax, eax
jns 0x599bbe
add eax, 3
sar eax, 2
mov word [ebp - 0x1a], ax
fld xword [ebp - 0x50]
fcomp dword [0x59a32c]
fnstsw ax
sahf
je 0x599bf4
fld xword [ebp - 0x50]
fdiv dword [0x59a330]
movzx eax, word [ebp - 0x16]
mov dword [ebp - 0x80], eax
fild dword [ebp - 0x80]
fmulp st(1)
fdiv dword [0x59a330]
fstp xword [ebp - 0x60]
wait
jmp 0x599c3e
fild dword [ebp - 0x3c]
fstp xword [ebp - 0x60]
wait
movzx eax, word [ebp - 0x12]
mov dword [ebp - 0x80], eax
fild dword [ebp - 0x80]
fld xword [ebp - 0x60]
fmulp st(1)
movzx eax, word [ebp - 0x14]
mov dword [ebp - 0x84], eax
fild dword [ebp - 0x84]
fmulp st(1)
fdiv dword [0x59a330]
movzx eax, word [ebp - 0x16]
mov dword [ebp - 0x88], eax
fild dword [ebp - 0x88]
fmulp st(1)
fdiv dword [0x59a330]
fstp xword [ebp - 0x60]
wait
cmp byte [ebp - 0x69], 0
je 0x59a2b4
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x3c]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0xc]
mov dx, word [ebp - 0x12]
mov word [eax + 0xc], dx
mov eax, dword [ebp - 0xc]
mov dx, word [ebp - 0x14]
mov word [eax + 0xe], dx
mov eax, dword [ebp - 0xc]
mov dx, word [ebp - 0x16]
mov word [eax + 0x10], dx
mov eax, dword [ebp - 0xc]
mov dx, word [ebp - 0x18]
mov word [eax + 0x12], dx
mov eax, dword [ebp - 0xc]
mov dx, word [ebp - 0x1a]
mov word [eax + 0x14], dx
mov al, byte [ebp - 0x26]
and al, 0xff
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x16], al
mov eax, dword [ebp - 0xc]
mov dx, word [ebp - 0x1c]
mov word [eax + 0x18], dx
mov eax, dword [ebp - 0xc]
mov dl, byte [ebp - 1]
mov byte [eax + 0x20], dl
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0x7e
mov ax, word [eax]
mov word [ebp - 0x10], ax
test byte [ebp - 0x10], 4
je 0x599cc8
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x22], 2
jmp 0x599ce4
test byte [ebp - 0x10], 2
je 0x599cd7
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x22], 1
jmp 0x599ce4
test byte [ebp - 0x10], 1
je 0x599ce4
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x22], 0
test byte [ebp - 0xf], 4
je 0x599cf3
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x25], 2
jmp 0x599d0f
test byte [ebp - 0xf], 2
je 0x599d02
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x25], 1
jmp 0x599d0f
test byte [ebp - 0xf], 1
je 0x599d0f
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x25], 0
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0x62
mov ax, word [eax]
mov word [ebp - 0x10], ax
test byte [ebp - 0xf], 8
setne al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x36], al
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0x82
mov ax, word [eax]
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 0xc]
mov dx, word [ebp - 0x10]
mov word [eax + 0x52], dx
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0x84
mov ax, word [eax]
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 0xc]
mov dx, word [ebp - 0x10]
mov word [eax + 0x54], dx
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0x86
mov ax, word [eax]
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 0xc]
mov dx, word [ebp - 0x10]
mov word [eax + 0x56], dx
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0x88
mov ax, word [eax]
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 0xc]
mov dx, word [ebp - 0x10]
mov word [eax + 0x58], dx
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0xb2
mov ax, word [eax]
mov word [ebp - 0x10], ax
and word [ebp - 0x10], 0x7fff
mov ax, word [ebp - 0x10]
add eax, eax
mov edx, dword [ebp - 0xc]
mov word [edx + 0x32], ax
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0xb4
mov ax, word [eax]
mov word [ebp - 0x10], ax
and word [ebp - 0x10], 0x7fff
mov ax, word [ebp - 0x10]
add eax, eax
mov edx, dword [ebp - 0xc]
mov word [edx + 0x34], ax
test byte [ebp - 0x28], 0x80
je 0x599e07
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x21], 7
jmp 0x599e6e
test byte [ebp - 0x28], 0x40
je 0x599e16
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x21], 6
jmp 0x599e6e
test byte [ebp - 0x28], 0x20
je 0x599e25
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x21], 5
jmp 0x599e6e
test byte [ebp - 0x28], 0x10
je 0x599e34
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x21], 4
jmp 0x599e6e
test byte [ebp - 0x28], 8
je 0x599e43
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x21], 3
jmp 0x599e6e
test byte [ebp - 0x28], 4
je 0x599e52
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x21], 2
jmp 0x599e6e
test byte [ebp - 0x28], 2
je 0x599e61
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x21], 1
jmp 0x599e6e
test byte [ebp - 0x28], 1
je 0x599e6e
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x21], 0
test byte [ebp - 0x27], 0x80
je 0x599e7d
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x24], 7
jmp 0x599ee4
test byte [ebp - 0x27], 0x40
je 0x599e8c
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x24], 6
jmp 0x599ee4
test byte [ebp - 0x27], 0x20
je 0x599e9b
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x24], 5
jmp 0x599ee4
test byte [ebp - 0x27], 0x10
je 0x599eaa
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x24], 4
jmp 0x599ee4
test byte [ebp - 0x27], 8
je 0x599eb9
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x24], 3
jmp 0x599ee4
test byte [ebp - 0x27], 4
je 0x599ec8
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x24], 2
jmp 0x599ee4
test byte [ebp - 0x27], 2
je 0x599ed7
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x24], 1
jmp 0x599ee4
test byte [ebp - 0x27], 1
je 0x599ee4
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x24], 0
test byte [ebp - 0x31], 8
je 0x599ef2
mov eax, dword [ebp - 0xc]
mov byte [eax], 0xb
jmp 0x599f6e
test byte [ebp - 0x31], 4
je 0x599f00
mov eax, dword [ebp - 0xc]
mov byte [eax], 0xa
jmp 0x599f6e
test byte [ebp - 0x31], 2
je 0x599f0e
mov eax, dword [ebp - 0xc]
mov byte [eax], 9
jmp 0x599f6e
test byte [ebp - 0x31], 1
je 0x599f1c
mov eax, dword [ebp - 0xc]
mov byte [eax], 8
jmp 0x599f6e
test byte [ebp - 0x32], 0x80
je 0x599f2a
mov eax, dword [ebp - 0xc]
mov byte [eax], 7
jmp 0x599f6e
test byte [ebp - 0x32], 0x40
je 0x599f38
mov eax, dword [ebp - 0xc]
mov byte [eax], 6
jmp 0x599f6e
test byte [ebp - 0x32], 0x20
je 0x599f46
mov eax, dword [ebp - 0xc]
mov byte [eax], 5
jmp 0x599f6e
test byte [ebp - 0x32], 0x10
je 0x599f54
mov eax, dword [ebp - 0xc]
mov byte [eax], 4
jmp 0x599f6e
test byte [ebp - 0x32], 8
je 0x599f62
mov eax, dword [ebp - 0xc]
mov byte [eax], 3
jmp 0x599f6e
test byte [ebp - 0x32], 4
je 0x599f6e
mov eax, dword [ebp - 0xc]
mov byte [eax], 2
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0xa2
mov ax, word [eax]
mov edx, dword [ebp - 0xc]
mov word [edx + 2], ax
xor eax, eax
push ebp
push 0x599fb4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0x1bc
mov ax, word [eax]
mov edx, dword [ebp - 0xc]
mov word [edx + 4], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x599fc7
fld xword [ebp - 0x50]
mov eax, dword [ebp - 0xc]
fstp qword [eax + 0x28]
wait
fld xword [ebp - 0x60]
fcomp dword [0x59a334]
fnstsw ax
sahf
jae 0x599fed
fld xword [ebp - 0x60]
call fcn.00402d78
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x1c], eax
cmp word [ebp - 0x1e], 1
seta al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x37], al
cmp word [ebp - 0x1e], 1
seta al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x38], al
cmp word [ebp - 0x1e], 2
ja 0x59a026
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0xa4
test byte [eax], 0x40
jne 0x59a026
xor eax, eax
jmp 0x59a028
mov al, 1
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x39], al
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0xaa
test byte [eax], 0x40
setne al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x3a], al
mov ax, word [ebp - 0x20]
and ax, 0x40
cmp ax, 0x40
sete al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x3b], al
mov ax, word [ebp - 0x20]
and ax, 4
cmp ax, 4
sete al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x3c], al
mov ax, word [ebp - 0x20]
and ax, 2
cmp ax, 2
sete al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x3d], al
cmp word [ebp - 0x22], 0
setne al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x3f], al
mov ax, word [ebp - 0x24]
and ax, 0x100
cmp ax, 0x100
sete al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x40], al
test byte [ebp - 0x20], 8
sete al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x3e], al
test byte [ebp - 0x28], 0xff
setne al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x41], al
test byte [ebp - 0x2a], 1
setne al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x42], al
test byte [ebp - 0x2a], 2
setne al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x43], al
test byte [ebp - 0x2a], 8
setne al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x44], al
test byte [ebp - 0x2a], 0x20
setne al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x45], al
test byte [ebp - 0x29], 4
setne al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x46], al
test byte [ebp - 0x34], 0x20
setne al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x48], al
test byte [ebp - 0x33], 2
setne al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x49], al
test byte [ebp - 0x33], 4
setne al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x4a], al
test byte [ebp - 0x34], 2
setne al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x4c], al
test byte [ebp - 0x33], 8
setne al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x4b], al
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0x152
cmp word [eax], 0
setne al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x4d], al
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0x152
test byte [eax], 1
setne al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x4e], al
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0x8a
test byte [eax + 1], 0x40
setne al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x4f], al
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0x8a
test byte [eax + 1], 0x80
setne al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x50], al
mov al, byte [ebp - 0x36]
and al, 0x1f
inc eax
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x26], al
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0xa6
test byte [eax], 8
setne al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x47], al
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0xac
test byte [eax], 8
setne al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x5a], al
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0xb6
mov ax, word [eax]
and ax, 0xff
mov edx, dword [ebp - 0xc]
mov word [edx + 0x5e], ax
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0xee
test byte [eax], 0x80
setne al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x5b], al
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0xf0
test byte [eax], 0x80
setne al
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x5c], al
lea eax, [ebp - 0x64]
call fcn.004057a4
add eax, 0x8a
mov al, byte [eax]
and al, 3
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x60], al
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x24], 0
jne 0x59a2b4
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x25], 0
jne 0x59a2b4
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x20], 2
jne 0x59a270
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x20], 3
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x20], 0
jne 0x59a2a8
mov eax, dword [ebp - 0xc]
cmp word [eax + 0x52], 0
jne 0x59a2a8
mov eax, dword [ebp - 0xc]
cmp word [eax + 0x54], 0
jne 0x59a2a8
mov eax, dword [ebp - 0xc]
cmp word [eax + 0x56], 0
jne 0x59a2a8
mov eax, dword [ebp - 0xc]
cmp word [eax + 0x58], 0
jne 0x59a2a8
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x20], 3
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x20]
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x23], al
mov al, byte [ebp - 0x69]
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59a2e9
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.004052b0
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.004052b0
ret