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

Disassembly:
sub esp, 0x5c
push ebp
mov ebp, dword [esp + 0x68]
push esi
push edi
mov edi, dword [esp + 0x6c]
mov edx, dword [ebp + 0x190]
xor ecx, ecx
cmp edx, 1
mov eax, dword [edi + 0x21c]
mov edx, dword [edi + 0xc]
setne cl
mov esi, dword [eax]
mov eax, dword [0x4b5b4c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x44], esi
mov ecx, dword [eax + edx*4 + 0xbc04]
mov edx, dword [ebp + 0x13bc]
mov dword [esp + 0x40], ecx
mov eax, dword [edx + 0x10]
test eax, eax
jne 0x445b9b
push 0x928
push 0x4aa7bc
call fcn.00418f50
add esp, 4
push eax
push 0x4aa7dc
push 0x4b6d60
call fcn.00492257
push 0x4b6d60
call fcn.004187d0
add esp, 0x14
mov eax, dword [ebp + 0x13bc]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp + 0xff8]
test eax, eax
mov edx, dword [ecx + 0x2c]
mov dword [esp + 0x3c], edx
jg 0x4465c9
push esi
call fcn.00409240
add esp, 4
mov dword [esp + 0x70], eax
test eax, eax
je 0x4465c9
push ebx
jmp 0x445bd5
mov eax, dword [esp + 0x74]
mov edx, dword [eax + 0x34]
xor ecx, ecx
lea ebx, [eax + 0x98]
mov eax, dword [eax + 4]
cmp edx, 1
setne cl
test eax, eax
mov dword [esp + 0x24], ecx
jle case.default.0x445d7c
cmp eax, 2
jg case.default.0x445d7c
mov edx, dword [esp + 0x74]
mov eax, dword [edx + 0x28]
test eax, eax
jg case.default.0x445d7c
fld dword [ebp + 0x1a4]
call fcn.004922ac
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x74]
fild dword [esp + 0x38]
fsub dword [eax + 0x4c]
call fcn.004922ac
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jg case.default.0x445d7c
mov edx, dword [esp + 0x74]
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [edx + 8]
push eax
push ebx
call fcn.00439dd0
add esp, 0xc
test eax, eax
je case.default.0x445d7c
mov eax, dword [ebp + 0xffc]
mov esi, dword [ebp + 0x1000]
mov edx, dword [ebx + 0xc]
and eax, esi
and eax, edx
test al, 7
je case.default.0x445d7c
test eax, 0xfffffff8
je case.default.0x445d7c
mov ecx, dword [esp + 0x74]
mov eax, dword [ecx + 0x2c]
test eax, eax
jg case.default.0x445d7c
mov esi, ecx
mov eax, dword [esi + 0x294]
test eax, eax
jne 0x445cc7
push 0x946
push 0x4aa7fc
call fcn.00418f50
add esp, 4
push eax
push 0x4aa81c
push 0x4b6d60
call fcn.00492257
push 0x4b6d60
call fcn.004187d0
add esp, 0x14
fild dword [ebp + 0x1c4]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
push edx
push eax
fadd dword [ebp + 0x1a0]
fsub dword [esi + 0x48]
call fcn.004922ac
fild dword [ebp + 0x1c0]
push eax
fadd dword [ebp + 0x19c]
fsub dword [esi + 0x44]
call fcn.004922ac
mov edx, dword [esi + 0x294]
mov ecx, dword [esp + 0x4c]
push eax
push ecx
mov eax, dword [edx + 0x28]
push eax
call fcn.00413c00
add esp, 0x18
test eax, eax
je case.default.0x445d7c
mov ecx, dword [ebp + 0xe00]
mov eax, dword [ebx + 0x78]
cmp ecx, 4
jne 0x445d30
test al, 0x40
je case.default.0x445d7c
mov esi, dword [ebp + 0xe04]
cmp esi, 2
jne 0x445d51
test al, 2
je case.default.0x445d7c
cmp esi, esi
jne 0x445d51
mov edx, dword [ebp + 0xe10]
test edx, edx
je 0x445d5a
test ah, 1
jne case.default.0x445d7c
mov edx, dword [ebp + 0x1070]
test edx, edx
je 0x445d6c
test al, 0x20
je case.default.0x445d7c
lea edx, [ecx - 1]
cmp edx, 3
mov dword [esp + 0x38], edx
ja case.default.0x445d7c
jmp dword [edx*4 + 0x4465d0]
test al, 0x10
jne 0x445da6
jmp case.default.0x445d7c
test al, 4
jne 0x445da6
jmp case.default.0x445d7c
test al, 8
jne 0x445da6
jmp case.default.0x445d7c
test al, 0x40
je case.default.0x445d7c
mov edx, dword [esp + 0x74]
mov eax, dword [edx + 0x1c]
test eax, eax
jle case.default.0x445d7c
mov eax, dword [ebx + 0x74]
xor edx, edx
cmp ecx, 4
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
jne 0x445dcb
test al, 0x40
je 0x445e04
cmp esi, 2
jne 0x445de0
test al, 2
je 0x445e04
cmp esi, esi
jne 0x445de0
cmp dword [ebp + 0xe10], edx
je 0x445de5
test ah, 1
jne 0x445e04
cmp dword [ebp + 0x1070], edx
je 0x445df1
test al, 0x20
je 0x445e04
mov ecx, dword [esp + 0x38]
jmp dword [ecx*4 + 0x4465e0]
test al, 0x10
jne 0x445f02
mov ecx, dword [ebx + 0x38]
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
fmul dword [ebp + 0x18c]
fadd qword [0x49f300]
call fcn.004922ac
mov ecx, dword [ebp + 0x1028]
mov esi, eax
mov eax, dword [esp + 0x20]
add esi, ecx
cmp eax, 1
jl 0x445e3c
test esi, esi
jne 0x445e3c
mov esi, 1
mov eax, dword [ebx + 0x24]
test eax, eax
jne 0x445e69
push ebp
call fcn.00439a60
sub eax, esi
add esp, 4
cmp eax, 1
jge 0x445e69
mov eax, dword [ebp + 0xe24]
test eax, eax
je 0x445e69
push ebp
call fcn.00439a60
mov esi, eax
add esp, 4
dec esi
mov eax, dword [ebp + 0x1028]
push ebp
sub esi, eax
call fcn.00439a60
sub eax, esi
add esp, 4
test eax, eax
jg 0x445e9c
mov edx, dword [ebx + 0xc]
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
mov dword [esp + 0x1c], 1
call fcn.00423c70
add esp, 0xc
mov esi, dword [0x4b5b4c]
mov eax, dword [esi + 0xb418]
xor edx, edx
cmp eax, edx
je 0x445eb2
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], edx
lea ecx, [ebp + 0x10a8]
mov eax, dword [ecx]
mov dword [esp + 0x20], ecx
test eax, eax
je 0x445edb
mov eax, dword [ecx + 4]
and eax, dword [ebx + 0xc]
test al, 7
je 0x445edb
test eax, 0xfffffff8
jne 0x445fdd
inc edx
add ecx, 0x14
cmp edx, 8
jge 0x445ff4
jmp 0x445ebc
test al, 4
jmp 0x445dfe
test al, 8
jne 0x445f02
jmp 0x445e04
test al, 0x40
je 0x445e04
cmp dword [ebp + 0xe10], edx
je 0x445e04
mov al, byte [edi + 0x20b]
test al, al
jne 0x445e04
mov edx, dword [ebx + 0x3c]
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fmul dword [ebp + 0x18c]
fadd qword [0x49f300]
call fcn.004922ac
mov ecx, dword [ebp + 0x1028]
mov esi, eax
mov eax, dword [esp + 0x20]
add esi, ecx
cmp eax, 1
jl 0x445f54
test esi, esi
jne 0x445f54
mov esi, 1
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x445f81
push ebp
call fcn.00439a60
sub eax, esi
add esp, 4
cmp eax, 1
jge 0x445f81
mov eax, dword [ebp + 0xe24]
test eax, eax
je 0x445f81
push ebp
call fcn.00439a60
mov esi, eax
add esp, 4
dec esi
mov eax, dword [ebp + 0x1028]
push ebp
sub esi, eax
call fcn.00439a60
sub eax, esi
add esp, 4
test eax, eax
jle 0x445fa5
mov dword [esp + 0x14], 1
jmp 0x445e9c
mov esi, dword [0x4b5b4c]
mov dword [esp + 0x10], 1
cmp dword [esi + 0xbc30], 3
je 0x445ea2
cmp dword [esp + 0x44], 0xa
jge 0x445ea2
mov eax, dword [edi + 0xc]
push 3
push 0
push eax
call fcn.00423ea0
jmp 0x445e99
xor eax, eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
jmp 0x4460d8
mov edx, dword [ebx + 0xa0]
xor esi, esi
mov dword [ebp + 0x1cc], edx
mov eax, dword [edi + 0x220]
push ebp
push eax
mov dword [esp + 0x28], esi
call fcn.0043a050
add esp, 8
cmp eax, esi
mov dword [esp + 0x1c], eax
jne 0x4460ae
lea ecx, [esp + 0x4c]
push 0x20
push ecx
call fcn.00418f20
mov ecx, dword [edi + 0x220]
mov edx, dword [edi + 0x64]
push esi
lea eax, [esp + 0x58]
push esi
push eax
push ecx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], edx
call fcn.00408a90
mov esi, eax
add esp, 0x18
cmp esi, 0xffffffff
je case.default.0x445d7c
mov ecx, dword [edi + 0x220]
test esi, esi
mov dword [esp + 0x38], ecx
jl 0x44606d
cmp esi, dword [ecx + 0xc]
jl 0x44609d
push 0x6e
push 0x4a9ea0
call fcn.00418f50
add esp, 4
push eax
push 0x4a9eb8
push 0x4b6d60
call fcn.00492257
push 0x4b6d60
call fcn.004187d0
mov ecx, dword [esp + 0x4c]
add esp, 0x14
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x14]
imul eax, esi
add eax, edx
xor esi, esi
mov dword [esp + 0x1c], eax
mov dword [eax + 0x18], esi
mov dword [eax + 0x14], esi
mov dword [eax + 0x10], esi
mov dword [eax + 0xc], esi
mov cl, byte [edi + 0x209]
test cl, cl
jne 0x4460d2
mov edx, dword [eax + 4]
mov eax, dword [ebx + 0x34]
sub edx, eax
js case.default.0x445d7c
mov esi, dword [0x4b5b4c]
mov ecx, dword [esi + 0xa78]
mov edx, dword [esi + 0xa7c]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x38], ecx
fild dword [esp + 0x38]
sub edx, ecx
mov ecx, dword [eax + 0x44]
mov dword [esp + 0x38], edx
mov edx, dword [ebx + 0xf0]
fsubr dword [eax + 0x4c]
fidiv dword [esp + 0x38]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x30], ecx
fld dword [esi + 0xa84]
imul edx, eax
fsub dword [esi + 0xa80]
fmulp st(1)
mov dword [esp + 0x38], edx
fadd dword [esi + 0xa80]
fild dword [esi + 0xb430]
fild dword [esp + 0x38]
fld dword [esp + 0x30]
fsub st(2)
fsub dword [0x49f490]
faddp st(1)
fmul st(2)
fadd st(1)
fadd dword [0x49f490]
call fcn.004922ac
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x74]
fstp st(0)
mov ecx, dword [eax + 0x48]
mov edx, dword [eax + 0x4c]
fild dword [ebx + 0xf4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
fadd dword [esp + 0x2c]
fmul st(1)
fiadd dword [esi + 0x5cec]
fadd dword [esp + 0x28]
call fcn.004922ac
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
test eax, eax
fstp st(0)
jne 0x4464d1
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [edx + 0x34]
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push eax
push ecx
push edx
push ebx
push ebp
push edi
call fcn.00444260
mov eax, dword [0x4b5b4c]
add esp, 0x24
mov eax, dword [eax + 0xbc30]
cmp eax, 3
je 0x44620b
cmp eax, 4
je 0x44620b
mov eax, dword [edi + 0x170]
mov ecx, dword [ebx + 0x40]
mov edx, dword [eax]
add edx, ecx
mov dword [eax], edx
mov eax, dword [edi + 0x170]
cmp dword [eax], 0
jge 0x4461f5
mov dword [eax], 0
mov edx, dword [edi + 0x174]
mov eax, dword [edi + 0x170]
mov ecx, dword [edx]
mov edx, dword [eax]
cmp edx, ecx
jle 0x44620b
mov dword [eax], ecx
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x44623e
mov al, byte [edi + 0x209]
test al, al
jne 0x44623e
mov eax, dword [ebp + 0x1070]
test eax, eax
je 0x44623e
mov eax, dword [ebx + 0x34]
cmp eax, 0xffffffff
je 0x44623e
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
sub edx, eax
mov dword [ecx + 4], edx
mov dword [ebx + 0x34], esi
mov eax, dword [ebx + 0x58]
mov ecx, dword [edi + 0x1398]
mov edx, dword [edi + 0xc]
add ecx, eax
mov dword [edi + 0x1398], ecx
mov ecx, dword [ebx + 0x58]
push ecx
push edx
call fcn.00421ef0
mov eax, dword [esp + 0x7c]
add esp, 8
mov ecx, dword [eax]
xor eax, eax
mov dword [edi + 0x210], ecx
mov dword [edi + 0x214], 2
mov dword [edi + 0x218], eax
cmp esi, eax
mov dword [ebp + 0x1000], 0x1ff
mov dword [ebp + 0x1008], eax
jne 0x4462bb
mov eax, dword [ebx + 0x19c]
test eax, eax
jg 0x4462a0
cmp eax, 0xffffffff
jne 0x4462bb
lea esi, [ebx + 0x198]
lea edi, [ebp + 0x25dc]
mov ecx, 0xf
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov eax, dword [ebx + 0xe4]
mov ecx, dword [esp + 0x34]
push 0
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [ebx + 0xe0]
push ecx
push edx
push eax
push edi
call fcn.00446750
add esp, 0x1c
test esi, esi
jne 0x44643b
mov eax, dword [ebx + 0x8c]
cmp eax, 0xffffffff
je 0x446302
mov dword [edi + 0xbf4], eax
mov dword [edi + 0xdfc], esi
mov eax, dword [ebx + 0x94]
test eax, eax
je 0x446378
mov ecx, dword [edi + 0xbe8]
mov dword [ebp + 0xbec], ecx
mov edx, dword [edi + 8]
mov dword [ebp + 0xbf0], edx
mov eax, dword [edi + 0x964]
lea ecx, [ebp + 0x968]
mov dword [ebp + 0x964], eax
push ecx
call fcn.00414300
mov eax, dword [edi + 0xbec]
add esp, 4
test eax, eax
je 0x446358
mov dword [ebp + 0xbec], eax
mov edx, dword [edi + 0xbf0]
mov dword [ebp + 0xbf0], edx
mov eax, dword [edi + 0x13c0]
test eax, eax
jne 0x446372
mov eax, dword [edi + 0x13bc]
mov ecx, dword [eax]
mov dword [ebp + 0x13c0], ecx
jmp 0x446378
mov dword [ebp + 0x13c0], eax
mov esi, dword [ebx + 0x90]
cmp esi, 0xffffffff
je 0x44640e
test esi, esi
mov dword [esp + 0x18], 1
je 0x4463ce
mov eax, dword [ebp + 0xbec]
push 0
test eax, eax
push esi
jne 0x4463b7
mov edx, dword [ebp + 0xbe8]
mov eax, dword [edx]
push eax
call fcn.004090f0
add esp, 0xc
test eax, eax
jne 0x4463ce
jmp 0x4463c6
mov ecx, dword [eax]
push ecx
call fcn.004090f0
add esp, 0xc
test eax, eax
jne 0x4463ce
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
mov edx, dword [ebp + 0xbf4]
test eax, eax
mov dword [ebp + 0xbf8], edx
mov dword [ebp + 0xbf4], esi
mov dword [ebp + 0xdfc], 0
jne 0x446404
mov eax, edx
push eax
push esi
push str.changed_to_invalid_state__i__from_state__i__n
push ebp
call fcn.00415630
add esp, 0x10
mov dword [ebp + 0xe0c], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x98]
mov dword [eax + 0x18], ecx
mov edx, dword [ebx + 0x10c]
mov dword [eax + 0xc], edx
mov ecx, dword [ebx + 0x110]
mov dword [eax + 0x10], ecx
mov edx, dword [ebx + 0x114]
mov dword [eax + 0x14], edx
jmp 0x446576
mov eax, dword [esp + 0x20]
mov esi, dword [eax + 8]
cmp esi, 0xffffffff
je 0x446576
test esi, esi
mov dword [esp + 0x20], 1
je 0x446492
mov eax, dword [ebp + 0xbec]
push 0
test eax, eax
push esi
jne 0x44647b
mov ecx, dword [ebp + 0xbe8]
mov edx, dword [ecx]
push edx
call fcn.004090f0
add esp, 0xc
test eax, eax
jne 0x446492
jmp 0x44648a
mov eax, dword [eax]
push eax
call fcn.004090f0
add esp, 0xc
test eax, eax
jne 0x446492
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0xbf4]
test eax, eax
mov dword [ebp + 0xbf8], ecx
mov dword [ebp + 0xbf4], esi
mov dword [ebp + 0xdfc], 0
jne 0x446576
mov edx, ecx
push edx
push esi
push str.changed_to_invalid_state__i__from_state__i__n
push ebp
call fcn.00415630
add esp, 0x10
jmp 0x446576
mov esi, dword [esp + 0x74]
mov eax, dword [esi + 0x34]
push eax
push ebx
push ebp
push edi
call fcn.00444d90
mov eax, dword [0x4b5b4c]
add esp, 0x10
mov eax, dword [eax + 0xbc30]
cmp eax, 3
je 0x446532
cmp eax, 4
je 0x446532
mov eax, dword [edi + 0x170]
mov ecx, dword [esi + 0xdc]
mov edx, dword [eax]
add edx, ecx
mov dword [eax], edx
mov eax, dword [edi + 0x170]
cmp dword [eax], 0
jge 0x44651c
mov dword [eax], 0
mov edx, dword [edi + 0x174]
mov eax, dword [edi + 0x170]
mov ecx, dword [edx]
mov edx, dword [eax]
cmp edx, ecx
jle 0x446532
mov dword [eax], ecx
mov eax, dword [esp + 0x24]
mov ecx, dword [ebx + 0xec]
mov edx, dword [esp + 0x34]
push 1
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [ebx + 0xe8]
push edx
push eax
push ecx
push edi
call fcn.00446750
mov edx, dword [esi]
add esp, 0x1c
mov dword [edi + 0x210], edx
mov dword [edi + 0x214], 1
mov dword [edi + 0x218], 0
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x1c]
mov dword [eax + 0x2c4], 1
dec ecx
test ecx, ecx
jg 0x44659d
mov edx, dword [eax + 0x38]
xor ecx, ecx
cmp edx, ecx
je 0x44659d
mov dword [eax + 0x2c8], ecx
jmp 0x4465a9
mov edx, dword [ebx + 0x54]
mov ecx, dword [eax + 0x30]
mov dword [eax + 0x2c8], edx
mov dword [eax + 0x2cc], ecx
mov edx, dword [esp + 0x48]
push edx
call fcn.004092b0
add esp, 4
mov dword [esp + 0x74], eax
test eax, eax
jne 0x445bd1
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x5c
ret