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

Disassembly:
jmp 0x5ff220
sub esp, 0x24
mov eax, dword [0x7af4f8]
xor eax, esp
mov dword [esp + 0x20], eax
movzx eax, byte [esp + 0x28]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
push edi
mov ebp, ecx
cmp eax, 0x12
ja case.0x5ff24d.3
movzx eax, byte [eax + 0x5ffb90]
jmp dword [eax*4 + 0x5ffb64]
lea ecx, [esi + 9]
push ecx
mov ecx, ebp
call fcn.00407fea
cmp dword [esi + 0x25], 0
je 0x5ff2ba
mov edx, dword [esi + 0x11]
mov dword [0x7f9d3c], edx
mov eax, dword [esi + 0x11]
push eax
call fcn.00407f09
mov ecx, eax
call fcn.0040293c
mov ecx, dword [esi + 0x11]
push ecx
mov ecx, 0x7c3b98
call fcn.0040ea4d
test eax, eax
jne 0x5ff2a0
push eax
push 0x3d0
push 0x66e2b8
jmp 0x5ffb47
mov ecx, dword [eax + 0x29e]
test ecx, 0x1000
jne 0x5ff2ba
or ecx, 0x1000
mov dword [eax + 0x29e], ecx
mov edx, dword [esi + 0x11]
push edx
mov ecx, 0x7c3b98
call fcn.00407446
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.006111ee
add esp, 0x24
ret 8
lea eax, [esi + 9]
push eax
call fcn.0040c333
mov ecx, dword [esi + 0xd]
push ecx
mov ecx, 0x7c3b98
call fcn.00407446
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.006111ee
add esp, 0x24
ret 8
mov edx, dword [esi + 3]
push edx
mov ecx, 0x7c2d20
call fcn.00401c58
mov edi, eax
xor ebp, ebp
cmp edi, ebp
je case.0x5ff24d.0
push ebp
push 0x1f
push edi
mov ecx, 0x7c51cc
call fcn.00410aa5
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push edi
push 0xe28
mov ecx, 0x7f9a50
call fcn.0040d8f5
lea eax, [esi + 0x3b]
push eax
mov ecx, edi
mov dword [edi + 0x404], 1
call fcn.00404d18
push edi
mov ecx, 0x7c2b78
call fcn.004107f8
cmp dword [0x7c2d24], edi
jne 0x5ff4b8
push 0x384
call fcn.006112e7
add esp, 4
cmp eax, ebp
je 0x5ff38f
mov ecx, eax
call fcn.00403fcb
mov ebx, eax
jmp 0x5ff391
xor ebx, ebx
lea ecx, [esi + 0x11]
push ecx
mov ecx, ebx
call fcn.0040dda0
push ebx
mov ecx, edi
call fcn.0040453e
mov edx, dword [esi + 0x21]
mov ecx, dword [0x7b21ec]
push edx
call fcn.004084fe
mov eax, dword [esi + 0x25]
mov ecx, dword [0x7b21ec]
push eax
call fcn.0040174e
mov ecx, dword [0x7b21ec]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 1
call eax
push 0x60a
mov ecx, 0x7c5388
call fcn.00408599
push eax
push 0x1d
push 0x7c5388
call fcn.0040198d
add esp, 0xc
push ebp
push 0x400
mov ecx, 0x7f8cc8
call fcn.0040e278
test eax, eax
jne 0x5ff417
mov ecx, dword [esi + 0xd]
mov edx, dword [0x7c2d24]
push ecx
push ebp
push 0xa5
push edx
jmp 0x5ff424
mov eax, dword [0x7c2d24]
push ebp
push ebp
push 0xa6
push eax
mov ecx, 0x7b3ef8
call fcn.004103ca
mov ecx, 0x7c2c90
call fcn.0040c8ec
mov ecx, 0x7c3b98
call fcn.00410c5d
mov ecx, dword [0x7b2250]
call fcn.004039b3
fld dword [0x66e470]
mov eax, dword [0x7f96f8]
mov ecx, dword [0x7c2d24]
imul eax, eax, 0xb0
push 1
push ecx
sub esp, 0xc
mov ecx, 0x7f9158
fstp dword [esp + 8]
fld dword [eax + 0x7f9188]
fstp dword [esp + 4]
fld dword [eax + 0x7f9178]
fstp dword [esp]
push ebp
call fcn.004097dc
push 1
mov ecx, 0x7f8cc8
call fcn.0040e53e
mov ecx, dword [0x7b21d8]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ebp
call eax
cmp dword [0x7c2d24], edi
jne 0x5ff4b8
mov ecx, 0x7c4248
call fcn.0040a399
mov eax, dword [edi + 0x142]
push eax
call fcn.00407211
mov ecx, eax
call fcn.004114a5
cmp byte [eax + 8], 2
jne 0x5ff544
push 0xfffffffffffffffe
mov ecx, edi
call fcn.0040a47f
mov al, byte [edi + 0x146]
test al, al
jne 0x5ff506
push str.t_eff_bmu_A_s.beff
call fcn.0040f4fc
mov ecx, dword [0x7c2d24]
add esp, 4
push ecx
push 1
lea edx, [esp + 0x24]
mov word [esp + 0x24], ax
push edx
jmp 0x5ff529
cmp al, 1
jne 0x5ff544
push str.t_eff_bmu_B_s.beff
call fcn.0040f4fc
add esp, 4
mov word [esp + 0x1c], ax
mov eax, dword [0x7c2d24]
push eax
push 1
lea ecx, [esp + 0x24]
push ecx
fldz
push 0xfffffffffffffffe
fst dword [esp + 0x3c]
mov ecx, edi
fst dword [esp + 0x38]
mov dword [esp + 0x30], ebp
fstp dword [esp + 0x34]
call fcn.00408b5c
cmp byte [edi + 0x451], 1
jne 0x5ff591
push 0xfffffffffffffffb
mov ecx, edi
call fcn.0040a47f
push str.t_maintain_PK_S.beff
call fcn.0040f4fc
fldz
mov edx, dword [0x7c2d24]
fst dword [esp + 0x30]
add esp, 4
fst dword [esp + 0x28]
push edx
fstp dword [esp + 0x28]
mov word [esp + 0x20], ax
push 1
lea eax, [esp + 0x24]
push eax
push 0xfffffffffffffffb
mov ecx, edi
mov dword [esp + 0x30], ebp
call fcn.00408b5c
mov ecx, edi
call fcn.004040b1
mov ecx, edi
call fcn.00406c99
test al, al
jne case.0x5ff24d.0
push ebp
push ebp
push edi
mov ecx, 0x7c51cc
call fcn.00410aa5
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.006111ee
add esp, 0x24
ret 8
mov ecx, dword [esi + 9]
push ecx
mov ecx, 0x7c2d20
call fcn.00401c58
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x5ff5ef
push ebx
push 0x448
push 0x66e30c
jmp 0x5ffb47
mov ecx, dword [esi + 0xd]
cmp dword [esi + 0x11], ebx
ja 0x5ff635
jb 0x5ff5fe
cmp ecx, 4
ja 0x5ff635
jmp dword [ecx*4 + 0x5ffba4]
push ebx
push 0x45c
push 0x66e320
call fcn.0040aec0
add esp, 0xc
push edi
mov ecx, 0x7c2b78
mov dword [edi + 0x404], ebx
call fcn.004107f8
cmp dword [0x7c2d24], edi
jne 0x5ff850
mov edx, dword [esi + 0xd]
mov ebx, dword [edi + 0x5f8]
push 0
push edx
mov ecx, ebp
call fcn.0040fe2f
test ebx, ebx
je 0x5ff689
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push 1
mov ecx, ebx
call edx
xor ebx, ebx
push ebx
mov ecx, edi
call fcn.0040453e
push 0
push 0x400
mov ecx, 0x7f8cc8
call fcn.0040e278
push 0
test eax, eax
jne 0x5ff6b5
mov eax, dword [0x7c2d24]
push 0xa5
push eax
jmp 0x5ff6c1
mov ecx, dword [0x7c2d24]
push 0xa6
push ecx
mov ecx, 0x7b3ef8
call fcn.00410f2d
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
call fcn.00409f5c
mov ecx, dword [eax]
mov eax, ecx
mov edx, ecx
and edx, 0xf000000
and eax, 0xf0000000
or eax, edx
mov edx, ecx
and edx, 0xfc0000
or eax, edx
mov edx, ecx
and edx, 0x3f000
or eax, edx
mov edx, ecx
and edx, 0xfc0
or eax, edx
and ecx, 0x3f
or eax, ecx
mov ecx, eax
and ecx, 0x3f
push ecx
mov edx, eax
mov ecx, eax
shr edx, 6
and edx, 0x3f
shr ecx, 0xc
push edx
and ecx, 0x3f
shr eax, 0x12
push ecx
and eax, 0x3f
push eax
call fcn.00410ffa
mov edx, dword [ebp + 0x14]
add esp, 0x10
push edx
mov ecx, 0x7c3b98
mov ebx, eax
call fcn.0040ea4d
test eax, eax
je 0x5ff76b
mov edx, dword [eax]
mov ebp, dword [0x7c2d24]
push 0
mov ecx, eax
mov eax, dword [edx + 0x78]
push ebx
call eax
movzx ecx, ax
push ecx
push 2
lea ecx, [ebp + 0x610]
call fcn.00406e01
mov ecx, dword [0x7b21ec]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 0
call eax
mov eax, dword [esi + 0xd]
mov esi, dword [esi + 0x11]
mov dword [esp + 0x14], esi
test esi, esi
jl 0x5ff7d3
jg 0x5ff7d3
test eax, eax
jb 0x5ff7d3
test esi, esi
jg 0x5ff7d3
jl 0x5ff799
cmp eax, 4
ja 0x5ff7d3
jmp dword [eax*4 + 0x5ffbb8]
push 0
push 0x4a3
push 0x66e334
call fcn.0040aec0
add esp, 0xc
mov ecx, 0x7c2c90
call fcn.0040c8ec
mov ecx, 0x7c3b98
call fcn.00410c5d
mov ecx, dword [0x7b2250]
call fcn.004039b3
fld dword [0x64e73c]
mov eax, dword [0x7f96f8]
mov ecx, dword [0x7c2d24]
imul eax, eax, 0xb0
sub esp, 0xc
fstp dword [esp + 8]
fld dword [eax + 0x7f9188]
fstp dword [esp + 4]
fld dword [eax + 0x7f9178]
fstp dword [esp]
push ecx
mov ecx, 0x7f9158
call fcn.00403b66
push 0
mov ecx, 0x7f8cc8
call fcn.0040e53e
xor ebx, ebx
mov ecx, edi
call fcn.004040b1
mov ecx, edi
call fcn.00406c99
test al, al
jne 0x5ff86f
push ebx
push ebx
push edi
mov ecx, 0x7c51cc
call fcn.00410aa5
mov eax, dword [edi + 0x142]
push eax
call fcn.00407211
mov ecx, eax
call fcn.004114a5
cmp byte [eax + 8], 2
jne 0x5ff8fc
push 0xfffffffffffffffe
mov ecx, edi
call fcn.0040a47f
mov al, byte [edi + 0x146]
test al, al
jne 0x5ff8bd
push str.eff_bmu_A_s.beff
call fcn.0040f4fc
mov edx, dword [0x7c2d24]
add esp, 4
push edx
mov word [esp + 0x20], ax
push 1
lea eax, [esp + 0x24]
push eax
jmp 0x5ff8e1
cmp al, 1
jne 0x5ff8fc
push str.eff_bmu_B_s.beff
call fcn.0040f4fc
mov ecx, dword [0x7c2d24]
add esp, 4
push ecx
push 1
lea edx, [esp + 0x24]
mov word [esp + 0x24], ax
push edx
fldz
push 0xfffffffffffffffe
fst dword [esp + 0x3c]
mov ecx, edi
fst dword [esp + 0x38]
mov dword [esp + 0x30], ebx
fstp dword [esp + 0x34]
call fcn.00408b5c
cmp byte [edi + 0x451], 1
jne case.0x5ff24d.0
push 0xfffffffffffffffb
mov ecx, edi
call fcn.0040a47f
push str.maintain_PK_S.beff
call fcn.0040f4fc
fldz
add esp, 4
fst dword [esp + 0x2c]
mov word [esp + 0x1c], ax
fst dword [esp + 0x28]
mov eax, dword [0x7c2d24]
fstp dword [esp + 0x24]
push eax
push 1
lea ecx, [esp + 0x24]
push ecx
push 0xfffffffffffffffb
mov ecx, edi
mov dword [esp + 0x30], ebx
call fcn.00408b5c
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.006111ee
add esp, 0x24
ret 8
mov edx, dword [ebp + 0x14]
push edx
call fcn.0040a34e
test eax, eax
jne 0x5ff97e
push eax
push 0x4da
push 0x66e384
jmp 0x5ffb47
mov ecx, dword [esi + 9]
mov dword [eax + 0x10], ecx
mov edx, dword [esi + 9]
push edx
mov ecx, ebp
call fcn.0040786f
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.006111ee
add esp, 0x24
ret 8
mov eax, dword [ebp + 0x14]
push eax
call fcn.0040a34e
test eax, eax
jne 0x5ff9c1
push eax
push 0x4ea
push 0x66e398
jmp 0x5ffb47
mov ecx, dword [esi + 9]
mov dword [eax + 0x14], ecx
mov edx, dword [esi + 9]
push edx
mov ecx, ebp
call fcn.0040b83e
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.006111ee
add esp, 0x24
ret 8
mov eax, dword [esi + 9]
push eax
call fcn.0040d86e
test eax, eax
je case.0x5ff24d.0
mov ecx, dword [esi + 0xd]
mov dword [eax + 0xc], ecx
mov edx, dword [esi + 9]
push edx
mov ecx, 0x7c3b98
call fcn.00407446
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.006111ee
add esp, 0x24
ret 8
mov eax, dword [esi + 3]
push eax
mov ecx, 0x7c2d20
call fcn.00401c58
mov edi, eax
test edi, edi
je case.0x5ff24d.0
mov ecx, edi
call fcn.00406c99
mov edx, dword [edi]
mov edx, dword [edx + 0x34]
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x10]
push eax
mov ecx, edi
call edx
cmp edi, dword [0x7c2d24]
jne 0x5ffab7
mov esi, dword [0x7b21d8]
mov eax, dword [esi]
mov edx, dword [eax + 8]
push 1
mov ecx, esi
call edx
mov eax, dword [0x7f9d3c]
push eax
mov ecx, 0x7f9d28
call fcn.0040a34e
test eax, eax
je case.0x5ff24d.0
movzx ecx, word [eax + 0xe]
movzx edx, word [eax + 0xc]
push ecx
push edx
mov ecx, 0x7d6f78
call fcn.0040eec1
test eax, eax
je case.0x5ff24d.0
mov eax, dword [eax + 0x64]
sub eax, dword [ebp + 0x170]
mov ecx, esi
push eax
call fcn.004026fd
mov ecx, esi
call fcn.00407e37
push 0x1f
push edi
mov ecx, 0x7c51cc
call fcn.0040a5e2
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.006111ee
add esp, 0x24
ret 8
mov ecx, dword [esi + 3]
push ecx
mov ecx, 0x7c2d20
call fcn.00401c58
mov esi, eax
test esi, esi
je case.0x5ff24d.0
push 0
push 0x1f
push esi
mov ecx, 0x7c51cc
call fcn.00410aa5
cmp esi, dword [0x7c2d24]
jne 0x5ffb13
mov ecx, dword [0x7b21d8]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 0
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x98]
push 0
push 0x147
mov ecx, esi
call eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.006111ee
add esp, 0x24
ret 8
push 0
push 0x54c
push 0x66e3ac
call fcn.0040aec0
add esp, 0xc
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.006111ee
add esp, 0x24
ret 8