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

Disassembly:
sub esp, 0x128
mov eax, 0x8007000c
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov ecx, dword [ebp + 0xf8]
mov byte [ebp + 0x148], bl
cmp ecx, ebx
je 0x540c0f
mov eax, dword [ecx]
push ecx
call dword [eax + 0x64]
cmp eax, 0x8007001e
je 0x540bf7
cmp eax, 0x8007000c
jne 0x540c0f
mov eax, dword [ebp + 0xf8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp + 0xf8]
push eax
mov edx, dword [eax]
call dword [edx + 0x64]
mov cl, byte [0xab5bac]
mov byte [esp + 0x12], 0
test cl, cl
je 0x540c23
mov byte [esp + 0x12], 1
mov dl, byte [0xab5baf]
xor cl, cl
test dl, dl
je 0x540c31
mov cl, 1
mov dl, byte [0xab752d]
test dl, dl
je 0x540c40
mov byte [esp + 0x12], 1
mov dl, byte [0xab5bae]
mov byte [esp + 0x27], dl
xor dl, dl
cmp byte [0xaab48c], dl
mov byte [esp + 0x13], dl
jne 0x540c70
mov esi, dword [0xb07d40]
cmp dword [esi + 0x90], 0x7eca21e5
jne 0x540c70
mov dl, 1
mov byte [esp + 0x13], dl
xor esi, esi
cmp byte [esp + 0x13c], 0
jne 0x540c81
mov esi, 1
test dl, dl
jne 0x540c8e
test cl, cl
je 0x540c8e
mov byte [esp + 0x12], 1
cmp eax, ebx
lea edi, [esp + 0x28]
mov ecx, 0x44
jge 0x540cb4
xor eax, eax
rep stosd dword es:[edi], eax
or eax, 0xffffffff
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
jmp 0x540d05
xor eax, eax
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
mov eax, dword [ebp + 0xf8]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov edx, dword [eax]
lea ecx, [esp + 0x28]
push ecx
push 0x110
push eax
call dword [edx + 0x24]
test eax, eax
jge 0x540d05
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x28]
or edx, 0xffffffff
rep stosd dword es:[edi], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
lea edi, [esi + esi*2]
mov byte [ebp + 0x10], 1
shl edi, 6
add edi, 0xb1eef0
mov byte [ebp + 0x148], 1
lea edx, [esp + 0x28]
mov eax, dword [edi + 0x74]
mov ecx, dword [edi + 0x70]
push eax
push ecx
push edx
call fcn.00540b20
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x68]
fstp dword [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.00540b20
mov eax, dword [edi + 0xa4]
mov ecx, dword [edi + 0xa0]
fstp dword [esp + 0x30]
push eax
lea edx, [esp + 0x44]
push ecx
push edx
call fcn.00540b20
mov eax, dword [edi + 0x9c]
mov ecx, dword [edi + 0x98]
fstp dword [esp + 0x40]
push eax
lea edx, [esp + 0x50]
push ecx
push edx
call fcn.00540b20
fstp dword [esp + 0x50]
add esp, 0x30
xor ecx, ecx
fld dword [esp + ecx*4 + 0x14]
fabs
fcomp qword [0x58bbf0]
fnstsw ax
test ah, 5
jp 0x540d9e
mov dword [esp + ecx*4 + 0x14], ebx
jmp 0x540dd3
fld dword [esp + ecx*4 + 0x14]
fcomp dword [0x589284]
fld dword [esp + ecx*4 + 0x14]
fnstsw ax
test ah, 5
jp 0x540dbb
fadd dword [0x58af78]
jmp 0x540dc1
fsub dword [0x58af78]
fstp dword [esp + ecx*4 + 0x14]
fld dword [esp + ecx*4 + 0x14]
fmul dword [0x58bbe8]
fstp dword [esp + ecx*4 + 0x14]
inc ecx
cmp ecx, 4
jb 0x540d85
xor ecx, ecx
mov esi, 0x3f800000
mov edx, 0xbf800000
fld dword [esp + ecx*4 + 0x14]
fcomp dword [0x589288]
fnstsw ax
and eax, 0x4100
jne 0x540dfe
mov dword [esp + ecx*4 + 0x14], esi
jmp 0x540e13
fld dword [esp + ecx*4 + 0x14]
fcomp dword [0x5892e4]
fnstsw ax
test ah, 5
jp 0x540e13
mov dword [esp + ecx*4 + 0x14], edx
inc ecx
cmp ecx, 4
jb 0x540de5
mov byte [ebp + 0x18], 0
mov byte [ebp + 0x19], 0x70
mov byte [ebp + 0x1a], 0xff
mov byte [ebp + 0x1b], 0xff
mov eax, dword [edi + 0x78]
cmp eax, 0xb
jl 0x540e62
cmp eax, 0x27
jg 0x540e62
mov cl, byte [esp + eax + 0x4d]
test cl, cl
setne al
test al, al
je 0x540e47
mov byte [ebp + 0x1b], 0xbf
mov eax, dword [edi + 0x80]
cmp eax, 0xb
jl 0x540e85
cmp eax, 0x27
jg 0x540e85
mov cl, byte [esp + eax + 0x4d]
test cl, cl
setne al
jmp 0x540ea8
cmp eax, 1
jl 0x540e47
cmp eax, 0xa
jg 0x540e47
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00540a00
add esp, 8
cmp eax, 0xc8
jg 0x540e43
jge 0x540e47
jmp 0x540e43
cmp eax, 1
jl 0x540eb0
cmp eax, 0xa
jg 0x540eb0
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.00540a00
add esp, 8
cmp eax, 0xc8
jg 0x540eac
jge 0x540eb0
jmp 0x540eac
test al, al
je 0x540eb0
and byte [ebp + 0x1b], 0xdf
mov eax, dword [edi + 0x84]
cmp eax, 0xb
jl 0x540ee9
cmp eax, 0x27
jg 0x540ee9
mov cl, byte [esp + eax + 0x4d]
test cl, cl
setne al
test al, al
je 0x540ed1
and byte [ebp + 0x1b], 0x7f
mov eax, dword [edi + 0x7c]
cmp eax, 0xb
jl 0x540f0c
cmp eax, 0x27
jg 0x540f0c
mov cl, byte [esp + eax + 0x4d]
test cl, cl
setne al
jmp 0x540f2f
cmp eax, 1
jl 0x540ed1
cmp eax, 0xa
jg 0x540ed1
lea edx, [esp + 0x28]
push eax
push edx
call fcn.00540a00
add esp, 8
cmp eax, 0xc8
jg 0x540ecd
jge 0x540ed1
jmp 0x540ecd
cmp eax, 1
jl 0x540f37
cmp eax, 0xa
jg 0x540f37
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00540a00
add esp, 8
cmp eax, 0xc8
jg 0x540f33
jge 0x540f37
jmp 0x540f33
test al, al
je 0x540f37
and byte [ebp + 0x1b], 0xef
mov eax, dword [edi + 0x94]
cmp eax, 0xb
jl 0x540f81
cmp eax, 0x27
jg 0x540f81
mov cl, byte [esp + eax + 0x4d]
test cl, cl
setne al
test al, al
je 0x540f58
mov byte [ebp + 0x1a], 0xf7
mov al, byte [esp + 0x13]
mov bl, 0xfa
test al, al
jne 0x5410e5
mov eax, dword [edi + 0x88]
cmp eax, 0xb
jl 0x540fa4
cmp eax, 0x27
jg 0x540fa4
mov cl, byte [esp + eax + 0x4d]
test cl, cl
setne al
jmp 0x540fc7
cmp eax, 1
jl 0x540f58
cmp eax, 0xa
jg 0x540f58
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.00540a00
add esp, 8
cmp eax, 0xc8
jg 0x540f54
jge 0x540f58
jmp 0x540f54
cmp eax, 1
jl 0x540fce
cmp eax, 0xa
jg 0x540fce
lea edx, [esp + 0x28]
push eax
push edx
call fcn.00540a00
add esp, 8
cmp eax, 0xc8
jg 0x540fcb
jge 0x540fce
jmp 0x540fcb
test al, al
je 0x540fce
and byte [ebp + 0x1b], bl
mov eax, dword [edi + 0x8c]
cmp eax, 0xb
jl 0x54100a
cmp eax, 0x27
jg 0x54100a
mov cl, byte [esp + eax + 0x4d]
test cl, cl
setne al
test al, al
je 0x540fef
and byte [ebp + 0x1b], 0xf5
mov eax, dword [edi + 0x90]
cmp eax, 0xb
jl 0x54102d
cmp eax, 0x27
jg 0x54102d
mov cl, byte [esp + eax + 0x4d]
test cl, cl
setne al
jmp 0x541050
cmp eax, 1
jl 0x540fef
cmp eax, 0xa
jg 0x540fef
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00540a00
add esp, 8
cmp eax, 0xc8
jg 0x540feb
jge 0x540fef
jmp 0x540feb
cmp eax, 1
jl 0x541058
cmp eax, 0xa
jg 0x541058
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.00540a00
add esp, 8
cmp eax, 0xc8
jg 0x541054
jge 0x541058
jmp 0x541054
test al, al
je 0x541058
and byte [ebp + 0x1b], 0xf0
mov al, byte [esp + 0x27]
test al, al
jne 0x5410e5
mov al, byte [esp + 0x13c]
test al, al
je 0x5410e5
mov ecx, dword [edi + 0x20]
mov eax, dword [0x5b717c]
cmp ecx, 0xffffffff
je 0x54109d
mov edx, eax
shl edx, 8
cmp byte [edx + ecx + 0xb1f0b0], 0
setne cl
test cl, cl
je 0x54109d
mov al, byte [ebp + 0x1b]
and al, bl
mov byte [ebp + 0x1b], al
mov eax, dword [0x5b717c]
mov ecx, dword [edi + 0x24]
cmp ecx, 0xffffffff
je 0x5410c6
mov edx, eax
shl edx, 8
cmp byte [edx + ecx + 0xb1f0b0], 0
setne cl
test cl, cl
je 0x5410c6
mov al, byte [ebp + 0x1b]
and al, 0xf5
mov byte [ebp + 0x1b], al
mov eax, dword [0x5b717c]
mov ecx, dword [edi + 0x28]
cmp ecx, 0xffffffff
je 0x5410e5
shl eax, 8
mov dl, byte [eax + ecx + 0xb1f0b0]
test dl, dl
setne al
test al, al
je 0x5410e5
and byte [ebp + 0x1b], 0xf0
xor eax, eax
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x24], eax
mov dword [ebp + 0x28], eax
mov eax, dword [edi + 0x7c]
cmp eax, 0xb
jl 0x541129
cmp eax, 0x27
jg 0x541129
mov cl, byte [esp + eax + 0x4d]
test cl, cl
setne al
test al, al
je 0x54110e
mov byte [ebp + 0x24], 0xff
mov eax, dword [edi + 0x80]
cmp eax, 0xb
jl 0x54114c
cmp eax, 0x27
jg 0x54114c
mov cl, byte [esp + eax + 0x4d]
test cl, cl
setne al
jmp 0x54116f
cmp eax, 1
jl 0x54110e
cmp eax, 0xa
jg 0x54110e
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.00540a00
add esp, 8
cmp eax, 0xc8
jg 0x54110a
jge 0x54110e
jmp 0x54110a
cmp eax, 1
jl 0x541177
cmp eax, 0xa
jg 0x541177
lea edx, [esp + 0x28]
push eax
push edx
call fcn.00540a00
add esp, 8
cmp eax, 0xc8
jg 0x541173
jge 0x541177
jmp 0x541173
test al, al
je 0x541177
mov byte [ebp + 0x25], 0xff
mov eax, dword [edi + 0x78]
cmp eax, 0xb
jl 0x5411b0
cmp eax, 0x27
jg 0x5411b0
mov cl, byte [esp + eax + 0x4d]
test cl, cl
setne al
test al, al
je 0x541195
mov byte [ebp + 0x26], 0xff
mov eax, dword [edi + 0x84]
cmp eax, 0xb
jl 0x5411d3
cmp eax, 0x27
jg 0x5411d3
mov cl, byte [esp + eax + 0x4d]
test cl, cl
setne al
jmp 0x5411f6
cmp eax, 1
jl 0x541195
cmp eax, 0xa
jg 0x541195
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00540a00
add esp, 8
cmp eax, 0xc8
jg 0x541191
jge 0x541195
jmp 0x541191
cmp eax, 1
jl 0x5411fe
cmp eax, 0xa
jg 0x5411fe
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.00540a00
add esp, 8
cmp eax, 0xc8
jg 0x5411fa
jge 0x5411fe
jmp 0x5411fa
test al, al
je 0x5411fe
mov byte [ebp + 0x27], 0xff
mov eax, dword [edi + 0x88]
cmp eax, 0xb
jl 0x54123a
cmp eax, 0x27
jg 0x54123a
mov cl, byte [esp + eax + 0x4d]
test cl, cl
setne al
test al, al
je 0x54121f
mov byte [ebp + 0x28], 0xff
mov eax, dword [edi + 0x8c]
cmp eax, 0xb
jl 0x54125d
cmp eax, 0x27
jg 0x54125d
mov cl, byte [esp + eax + 0x4d]
test cl, cl
setne al
jmp 0x541280
cmp eax, 1
jl 0x54121f
cmp eax, 0xa
jg 0x54121f
lea edx, [esp + 0x28]
push eax
push edx
call fcn.00540a00
add esp, 8
cmp eax, 0xc8
jg 0x54121b
jge 0x54121f
jmp 0x54121b
cmp eax, 1
jl 0x541288
cmp eax, 0xa
jg 0x541288
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00540a00
add esp, 8
cmp eax, 0xc8
jg 0x541284
jge 0x541288
jmp 0x541284
test al, al
je 0x541288
mov byte [ebp + 0x29], 0xff
mov eax, dword [edi + 0x90]
cmp eax, 0xb
jl 0x5412c4
cmp eax, 0x27
jg 0x5412c4
mov cl, byte [esp + eax + 0x4d]
test cl, cl
setne al
test al, al
je 0x5412a9
and byte [ebp + 0x1b], 0xf0
mov eax, dword [edi + 0x88]
cmp eax, 0xb
jl 0x5412e7
cmp eax, 0x27
jg 0x5412e7
mov cl, byte [esp + eax + 0x4d]
test cl, cl
setne al
jmp 0x54130a
cmp eax, 1
jl 0x5412a9
cmp eax, 0xa
jg 0x5412a9
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.00540a00
add esp, 8
cmp eax, 0xc8
jg 0x5412a5
jge 0x5412a9
jmp 0x5412a5
cmp eax, 1
jl 0x541311
cmp eax, 0xa
jg 0x541311
lea edx, [esp + 0x28]
push eax
push edx
call fcn.00540a00
add esp, 8
cmp eax, 0xc8
jg 0x54130e
jge 0x541311
jmp 0x54130e
test al, al
je 0x541311
and byte [ebp + 0x1b], bl
mov eax, dword [edi + 0x8c]
cmp eax, 0xb
jl 0x5414e0
cmp eax, 0x27
jg 0x5414e0
mov cl, byte [esp + eax + 0x4d]
test cl, cl
setne al
test al, al
je 0x54133a
and byte [ebp + 0x1b], 0xf5
mov al, byte [esp + 0x13]
test al, al
je 0x541351
mov cl, byte [esp + 0x13c]
test cl, cl
je 0x541b74
mov cl, byte [esp + 0x27]
test cl, cl
jne 0x541910
mov cl, byte [esp + 0x12]
test cl, cl
je 0x541516
mov cl, byte [esp + 0x13c]
test cl, cl
je 0x5413f8
test al, al
jne 0x5413f8
mov eax, dword [0x5b717c]
shl eax, 8
mov cl, byte [eax + 0xb1f17b]
test cl, cl
setne cl
test cl, cl
je 0x5413a1
fld dword [esp + 0x14]
fsub dword [0x589288]
fstp dword [esp + 0x14]
mov cl, byte [eax + 0xb1f17d]
test cl, cl
setne cl
test cl, cl
je 0x5413be
fld dword [esp + 0x14]
fadd dword [0x589288]
fstp dword [esp + 0x14]
mov cl, byte [eax + 0xb1f178]
test cl, cl
setne cl
test cl, cl
je 0x5413db
fld dword [esp + 0x18]
fsub dword [0x589288]
fstp dword [esp + 0x18]
mov dl, byte [eax + 0xb1f180]
test dl, dl
setne al
test al, al
je 0x5413f8
fld dword [esp + 0x18]
fadd dword [0x589288]
fstp dword [esp + 0x18]
mov ecx, dword [edi + 8]
push ecx
call fcn.005425b0
add esp, 4
test al, al
je 0x541416
fld dword [esp + 0x14]
fsub dword [0x589288]
fstp dword [esp + 0x14]
mov edx, dword [edi + 0xc]
push edx
call fcn.005425b0
add esp, 4
test al, al
je 0x541434
fld dword [esp + 0x14]
fadd dword [0x589288]
fstp dword [esp + 0x14]
mov eax, dword [edi]
push eax
call fcn.005425b0
add esp, 4
test al, al
je 0x541451
fld dword [esp + 0x18]
fsub dword [0x589288]
fstp dword [esp + 0x18]
mov ecx, dword [edi + 4]
push ecx
call fcn.005425b0
add esp, 4
test al, al
je 0x54146f
fld dword [esp + 0x18]
fadd dword [0x589288]
fstp dword [esp + 0x18]
mov edx, dword [edi + 0x38]
push edx
call fcn.005425b0
add esp, 4
test al, al
je 0x54148d
fld dword [esp + 0x1c]
fsub dword [0x589288]
fstp dword [esp + 0x1c]
mov eax, dword [edi + 0x3c]
push eax
call fcn.005425b0
add esp, 4
test al, al
je 0x5414ab
fld dword [esp + 0x1c]
fadd dword [0x589288]
fstp dword [esp + 0x1c]
mov ecx, dword [edi + 0x30]
push ecx
call fcn.005425b0
add esp, 4
test al, al
je 0x5414c9
fld dword [esp + 0x20]
fsub dword [0x589288]
fstp dword [esp + 0x20]
mov edx, dword [edi + 0x34]
push edx
call fcn.005425b0
mov esi, dword [0x5b717c]
add esp, 4
jmp 0x541661
cmp eax, 1
jl 0x54133a
cmp eax, 0xa
jg 0x54133a
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00540a00
add esp, 8
cmp eax, 0xc8
jg 0x541336
jge 0x54133a
jmp 0x541336
mov eax, dword [edi + 8]
mov esi, dword [0x5b717c]
cmp eax, 0xffffffff
je 0x541547
mov ecx, esi
shl ecx, 8
mov dl, byte [ecx + eax + 0xb1f0b0]
test dl, dl
setne al
test al, al
je 0x541547
fld dword [esp + 0x14]
fsub dword [0x589288]
fstp dword [esp + 0x14]
mov eax, dword [edi + 0xc]
cmp eax, 0xffffffff
je 0x541572
mov edx, esi
shl edx, 8
mov cl, byte [edx + eax + 0xb1f0b0]
test cl, cl
setne al
test al, al
je 0x541572
fld dword [esp + 0x14]
fadd dword [0x589288]
fstp dword [esp + 0x14]
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x54159c
mov ecx, esi
shl ecx, 8
mov dl, byte [ecx + eax + 0xb1f0b0]
test dl, dl
setne al
test al, al
je 0x54159c
fld dword [esp + 0x18]
fsub dword [0x589288]
fstp dword [esp + 0x18]
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x5415c7
mov edx, esi
shl edx, 8
mov cl, byte [edx + eax + 0xb1f0b0]
test cl, cl
setne al
test al, al
je 0x5415c7
fld dword [esp + 0x18]
fadd dword [0x589288]
fstp dword [esp + 0x18]
mov eax, dword [edi + 0x38]
cmp eax, 0xffffffff
je 0x5415f2
mov ecx, esi
shl ecx, 8
mov dl, byte [ecx + eax + 0xb1f0b0]
test dl, dl
setne al
test al, al
je 0x5415f2
fld dword [esp + 0x1c]
fsub dword [0x589288]
fstp dword [esp + 0x1c]
mov eax, dword [edi + 0x3c]
cmp eax, 0xffffffff
je 0x54161d
mov edx, esi
shl edx, 8
mov cl, byte [edx + eax + 0xb1f0b0]
test cl, cl
setne al
test al, al
je 0x54161d
fld dword [esp + 0x1c]
fadd dword [0x589288]
fstp dword [esp + 0x1c]
mov eax, dword [edi + 0x30]
cmp eax, 0xffffffff
je 0x541648
mov ecx, esi
shl ecx, 8
mov dl, byte [ecx + eax + 0xb1f0b0]
test dl, dl
setne al
test al, al
je 0x541648
fld dword [esp + 0x20]
fsub dword [0x589288]
fstp dword [esp + 0x20]
mov eax, dword [edi + 0x34]
cmp eax, 0xffffffff
je 0x541673
mov edx, esi
shl edx, 8
mov cl, byte [edx + eax + 0xb1f0b0]
test cl, cl
setne al
test al, al
je 0x541673
fld dword [esp + 0x20]
fadd dword [0x589288]
fstp dword [esp + 0x20]
mov al, byte [esp + 0x13]
test al, al
mov eax, dword [edi + 0x20]
jne 0x5416f5
cmp eax, 0xffffffff
je 0x5416a6
mov ecx, esi
shl ecx, 8
mov dl, byte [ecx + eax + 0xb1f0b0]
test dl, dl
setne al
test al, al
je 0x5416a6
mov al, byte [ebp + 0x1b]
and al, bl
mov byte [ebp + 0x1b], al
mov esi, dword [0x5b717c]
mov eax, dword [edi + 0x24]
cmp eax, 0xffffffff
je 0x5416d1
mov edx, esi
shl edx, 8
mov bl, byte [edx + eax + 0xb1f0b0]
test bl, bl
setne al
test al, al
je 0x5416d1
mov al, byte [ebp + 0x1b]
and al, 0xf5
mov byte [ebp + 0x1b], al
mov esi, dword [0x5b717c]
mov eax, dword [edi + 0x28]
cmp eax, 0xffffffff
je 0x541748
mov ecx, esi
shl ecx, 8
mov dl, byte [ecx + eax + 0xb1f0b0]
test dl, dl
setne al
test al, al
je 0x541748
mov al, byte [ebp + 0x1b]
and al, 0xf0
jmp 0x54173f
cmp eax, 0xffffffff
je 0x54171d
mov edx, esi
shl edx, 8
mov bl, byte [edx + eax + 0xb1f0b0]
test bl, bl
setne al
test al, al
je 0x54171d
mov al, byte [ebp + 0x1b]
and al, 0xfb
mov byte [ebp + 0x1b], al
mov esi, dword [0x5b717c]
mov eax, dword [edi + 0x24]
cmp eax, 0xffffffff
je 0x541748
mov ecx, esi
shl ecx, 8
mov dl, byte [ecx + eax + 0xb1f0b0]
test dl, dl
setne al
test al, al
je 0x541748
mov al, byte [ebp + 0x1b]
and al, 0xfe
mov byte [ebp + 0x1b], al
mov esi, dword [0x5b717c]
mov al, byte [esp + 0x12]
test al, al
jne 0x541780
mov eax, dword [edi + 0x2c]
cmp eax, 0xffffffff
je 0x541780
mov edx, esi
shl edx, 8
mov bl, byte [edx + eax + 0xb1f0b0]
test bl, bl
setne cl
test cl, cl
je 0x541780
cmp eax, 1
je 0x541780
mov al, byte [ebp + 0x1a]
and al, 0xf7
mov byte [ebp + 0x1a], al
mov esi, dword [0x5b717c]
mov eax, dword [edi + 0x10]
cmp eax, 0xffffffff
je 0x5417ab
mov ecx, esi
shl ecx, 8
mov dl, byte [ecx + eax + 0xb1f0b0]
test dl, dl
setne al
test al, al
je 0x5417ab
mov al, byte [ebp + 0x1b]
and al, 0xbf
mov byte [ebp + 0x1b], al
mov esi, dword [0x5b717c]
mov eax, dword [edi + 0x18]
cmp eax, 0xffffffff
je 0x5417d6
mov edx, esi
shl edx, 8
mov bl, byte [edx + eax + 0xb1f0b0]
test bl, bl
setne al
test al, al
je 0x5417d6
mov al, byte [ebp + 0x1b]
and al, 0xdf
mov byte [ebp + 0x1b], al
mov esi, dword [0x5b717c]
mov eax, dword [edi + 0x1c]
cmp eax, 0xffffffff
je 0x541801
mov ecx, esi
shl ecx, 8
mov dl, byte [ecx + eax + 0xb1f0b0]
test dl, dl
setne al
test al, al
je 0x541801
mov al, byte [ebp + 0x1b]
and al, 0x7f
mov byte [ebp + 0x1b], al
mov esi, dword [0x5b717c]
mov eax, dword [edi + 0x14]
cmp eax, 0xffffffff
je 0x54182c
mov edx, esi
shl edx, 8
mov bl, byte [edx + eax + 0xb1f0b0]
test bl, bl
setne al
test al, al
je 0x54182c
mov al, byte [ebp + 0x1b]
and al, 0xef
mov byte [ebp + 0x1b], al
mov esi, dword [0x5b717c]
mov eax, dword [edi + 0x10]
cmp eax, 0xffffffff
je 0x541853
mov ecx, esi
shl ecx, 8
mov dl, byte [ecx + eax + 0xb1f0b0]
test dl, dl
setne al
test al, al
je 0x541853
mov byte [ebp + 0x26], 0xff
mov esi, dword [0x5b717c]
mov eax, dword [edi + 0x18]
cmp eax, 0xffffffff
je 0x54187a
mov edx, esi
shl edx, 8
mov bl, byte [edx + eax + 0xb1f0b0]
test bl, bl
setne al
test al, al
je 0x54187a
mov byte [ebp + 0x25], 0xff
mov esi, dword [0x5b717c]
mov eax, dword [edi + 0x1c]
cmp eax, 0xffffffff
je 0x5418a1
mov ecx, esi
shl ecx, 8
mov dl, byte [ecx + eax + 0xb1f0b0]
test dl, dl
setne al
test al, al
je 0x5418a1
mov byte [ebp + 0x27], 0xff
mov esi, dword [0x5b717c]
mov eax, dword [edi + 0x14]
cmp eax, 0xffffffff
je 0x5418c8
mov edx, esi
shl edx, 8
mov bl, byte [edx + eax + 0xb1f0b0]
test bl, bl
setne al
test al, al
je 0x5418c8
mov byte [ebp + 0x24], 0xff
mov esi, dword [0x5b717c]
mov eax, dword [edi + 0x20]
cmp eax, 0xffffffff
je 0x5418ef
mov ecx, esi
shl ecx, 8
mov dl, byte [ecx + eax + 0xb1f0b0]
test dl, dl
setne al
test al, al
je 0x5418ef
mov byte [ebp + 0x28], 0xff
mov esi, dword [0x5b717c]
mov eax, dword [edi + 0x24]
cmp eax, 0xffffffff
je 0x541916
mov edx, esi
shl edx, 8
mov bl, byte [edx + eax + 0xb1f0b0]
test bl, bl
setne al
test al, al
je 0x541916
mov byte [ebp + 0x29], 0xff
mov esi, dword [0x5b717c]
xor ecx, ecx
mov ebx, 0x3f800000
mov edx, 0xbf800000
fld dword [esp + ecx*4 + 0x14]
fcomp dword [0x589288]
fnstsw ax
and eax, 0x4100
jne 0x54193b
mov dword [esp + ecx*4 + 0x14], ebx
jmp 0x541950
fld dword [esp + ecx*4 + 0x14]
fcomp dword [0x5892e4]
fnstsw ax
test ah, 5
jp 0x541950
mov dword [esp + ecx*4 + 0x14], edx
inc ecx
cmp ecx, 4
jb 0x541922
mov al, byte [esp + 0x13]
test al, al
je 0x541b74
mov al, byte [esp + 0x12]
test al, al
jne 0x541b74
mov al, byte [esp + 0x27]
test al, al
jne 0x541b74
mov eax, dword [edi + 0xa8]
cmp eax, 0xb
jl 0x5419dd
cmp eax, 0x27
jg 0x5419dd
mov cl, byte [esp + eax + 0x4d]
test cl, cl
setne al
test al, al
jne 0x5419b4
mov eax, dword [edi + 0x40]
cmp eax, 0xffffffff
je 0x5419c2
mov ecx, esi
shl ecx, 8
mov dl, byte [ecx + eax + 0xb1f0b0]
test dl, dl
setne al
test al, al
je 0x5419c2
mov al, byte [ebp + 0x1a]
xor al, 0x10
mov byte [ebp + 0x1a], al
mov esi, dword [0x5b717c]
mov eax, dword [edi + 0xac]
cmp eax, 0xb
jl 0x541a00
cmp eax, 0x27
jg 0x541a00
mov cl, byte [esp + eax + 0x4d]
test cl, cl
setne al
jmp 0x541a23
cmp eax, 1
jl 0x541997
cmp eax, 0xa
jg 0x541997
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00540a00
add esp, 8
cmp eax, 0xc8
jg 0x5419b4
jge 0x541997
jmp 0x5419b4
cmp eax, 1
jl 0x541a27
cmp eax, 0xa
jg 0x541a27
lea edx, [esp + 0x28]
push eax
push edx
call fcn.00540a00
add esp, 8
cmp eax, 0xc8
jg 0x541a44
jge 0x541a27
jmp 0x541a44
test al, al
jne 0x541a44
mov eax, dword [edi + 0x44]
cmp eax, 0xffffffff
je 0x541a52
mov ecx, esi
shl ecx, 8
mov dl, byte [ecx + eax + 0xb1f0b0]
test dl, dl
setne al
test al, al
je 0x541a52
mov al, byte [ebp + 0x1a]
xor al, 0x40
mov byte [ebp + 0x1a], al
mov esi, dword [0x5b717c]
mov eax, dword [edi + 0xb0]
cmp eax, 0xb
jl 0x541ab5
cmp eax, 0x27
jg 0x541ab5
mov cl, byte [esp + eax + 0x4d]
test cl, cl
setne al
test al, al
jne 0x541a8c
mov eax, dword [edi + 0x48]
cmp eax, 0xffffffff
je 0x541a9a
mov ecx, esi
shl ecx, 8
mov dl, byte [ecx + eax + 0xb1f0b0]
test dl, dl
setne al
test al, al
je 0x541a9a
mov al, byte [ebp + 0x1a]
xor al, 0x80
mov byte [ebp + 0x1a], al
mov esi, dword [0x5b717c]
mov eax, dword [edi + 0xb4]
cmp eax, 0xb
jl 0x541ad8
cmp eax, 0x27
jg 0x541ad8
mov cl, byte [esp + eax + 0x4d]
test cl, cl
setne al
jmp 0x541afb
cmp eax, 1
jl 0x541a6f
cmp eax, 0xa
jg 0x541a6f
lea edx, [esp + 0x28]
push eax
push edx
call fcn.00540a00
add esp, 8
cmp eax, 0xc8
jg 0x541a8c
jge 0x541a6f
jmp 0x541a8c
cmp eax, 1
jl 0x541aff
cmp eax, 0xa
jg 0x541aff
lea edx, [esp + 0x28]
push eax
push edx
call fcn.00540a00
add esp, 8
cmp eax, 0xc8
jg 0x541b1c
jge 0x541aff
jmp 0x541b1c
test al, al
jne 0x541b1c
mov eax, dword [edi + 0x4c]
cmp eax, 0xffffffff
je 0x541b2a
mov ecx, esi
shl ecx, 8
mov dl, byte [ecx + eax + 0xb1f0b0]
test dl, dl
setne al
test al, al
je 0x541b2a
mov al, byte [ebp + 0x1a]
xor al, 0x20
mov byte [ebp + 0x1a], al
mov esi, dword [0x5b717c]
mov eax, dword [edi + 0x50]
cmp eax, 0xffffffff
je 0x541b55
mov edx, esi
shl edx, 8
mov bl, byte [edx + eax + 0xb1f0b0]
test bl, bl
setne al
test al, al
je 0x541b55
mov al, byte [ebp + 0x1b]
xor al, 2
mov byte [ebp + 0x1b], al
mov esi, dword [0x5b717c]
mov eax, dword [edi + 0x54]
cmp eax, 0xffffffff
je 0x541b74
shl esi, 8
mov dl, byte [esi + eax + 0xb1f0b0]
test dl, dl
setne al
test al, al
je 0x541b74
xor byte [ebp + 0x1b], 8
fld dword [esp + 0x14]
fadd dword [0x589288]
fmul dword [0x58930c]
fmul dword [0x589700]
call fcn.005749d0
fld dword [esp + 0x18]
fadd dword [0x589288]
mov byte [ebp + 0x1e], al
fmul dword [0x58930c]
fmul dword [0x589700]
call fcn.005749d0
fld dword [esp + 0x1c]
fadd dword [0x589288]
mov byte [ebp + 0x1f], al
fmul dword [0x58930c]
fmul dword [0x589700]
call fcn.005749d0
fld dword [esp + 0x20]
fadd dword [0x589288]
mov byte [ebp + 0x1c], al
fmul dword [0x58930c]
fmul dword [0x589700]
call fcn.005749d0
mov cl, byte [ebp + 0x1b]
mov byte [ebp + 0x1d], al
mov al, byte [ebp + 0x1a]
xor edx, edx
mov dh, al
mov dl, cl
xor edx, 0xffff
je 0x541c09
mov byte [ebp + 0x154], 1
jmp 0x541c10
mov byte [ebp + 0x154], 0
test al, 8
je 0x541c53
test cl, 0x40
je 0x541c53
mov eax, dword [edi + 0x2c]
cmp eax, 1
je 0x541c3f
cmp eax, 0xffffffff
je 0x541c3f
mov ecx, dword [0x5b717c]
shl ecx, 8
mov dl, byte [ecx + eax + 0xb1f0b0]
test dl, dl
setne al
test al, al
jne 0x541c53
pop edi
mov byte [ebp + 0x155], 0
pop esi
pop ebp
pop ebx
add esp, 0x128
ret 4
pop edi
mov byte [ebp + 0x155], 1
pop esi
pop ebp
pop ebx
add esp, 0x128
ret 4