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

Disassembly:
mov eax, dword [0x89e864]
mov cl, byte [eax + 0x1aaa4]
sub esp, 0xb0
cmp cl, 0xff
je 0x51116e
mov ecx, dword [edi + 0x54]
mov edx, dword [edi + 0x4c]
push ebx
push ebp
push esi
push 0
push ecx
push 0
push 0
push edx
call fcn.0054b850
mov eax, dword [0x89e864]
mov eax, dword [eax + 0x27350]
mov edx, dword [eax + 0x250]
add esp, 0x14
add eax, 0x24c
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.004d3720
mov ebx, 1
mov esi, eax
call fcn.004031f0
cmp dword [esp + 0x10], ebx
jge 0x51005a
mov ebp, ebx
jmp 0x510086
mov eax, dword [0x89e864]
mov eax, dword [eax + 0x27350]
mov edx, dword [eax + 0x250]
add eax, 0x24c
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.004d3720
mov esi, eax
call fcn.004031f0
mov ebp, dword [esp + 0x10]
mov eax, dword [0x89e864]
mov eax, dword [eax + 0x27350]
mov edx, dword [eax + 0x258]
add eax, 0x254
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.004d3720
mov ebx, 1
mov esi, eax
call fcn.004031f0
mov eax, dword [esp + 0x10]
shl eax, 3
cdq
idiv ebp
mov edx, dword [edi + 0x58]
push 0x257
add eax, edx
push eax
push 0
push 0
call fcn.005488f0
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 0x58]
mov edx, dword [edi + 0x4c]
push 0
push eax
push ecx
push 3
push edx
call fcn.0054b850
push 0x257
push 0x31f
push 0
push 0
call fcn.005488f0
mov eax, dword [0x89e864]
mov eax, dword [eax + 0x27350]
mov edx, dword [eax + 0x250]
add esp, 0x34
add eax, 0x24c
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.004d3720
mov esi, eax
call fcn.004031f0
cmp dword [esp + 0x10], ebx
jge 0x51012e
mov ebp, ebx
jmp 0x51015a
mov eax, dword [0x89e864]
mov eax, dword [eax + 0x27350]
mov edx, dword [eax + 0x250]
add eax, 0x24c
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.004d3720
mov esi, eax
call fcn.004031f0
mov ebp, dword [esp + 0x10]
mov eax, dword [0x89e864]
mov eax, dword [eax + 0x27350]
mov edx, dword [eax + 0x260]
add eax, 0x25c
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.004d3720
mov ebx, 1
mov esi, eax
call fcn.004031f0
mov eax, dword [edi + 0x6c]
push 0
push eax
mov eax, dword [esp + 0x18]
shl eax, 3
cdq
idiv ebp
mov edx, dword [edi + 0x68]
mov ecx, dword [edi + 0x4c]
add eax, edx
push eax
push 5
push ecx
call fcn.0054b850
mov edx, dword [0x89e864]
mov eax, dword [edx + 0x27350]
mov edx, dword [eax + 0x280]
add esp, 0x14
add eax, 0x27c
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.004d3720
mov esi, eax
call fcn.004031f0
cmp dword [esp + 0x10], ebx
jge 0x5101de
mov ebp, ebx
jmp 0x51020a
mov eax, dword [0x89e864]
mov eax, dword [eax + 0x27350]
mov edx, dword [eax + 0x280]
add eax, 0x27c
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.004d3720
mov esi, eax
call fcn.004031f0
mov ebp, dword [esp + 0x10]
mov eax, dword [0x89e864]
mov eax, dword [eax + 0x27350]
mov edx, dword [eax + 0x288]
add eax, 0x284
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.004d3720
mov ebx, 1
mov esi, eax
call fcn.004031f0
mov eax, dword [esp + 0x10]
imul eax, eax, 0x190
cdq
idiv ebp
mov edx, dword [edi + 0x60]
push 0x257
add eax, edx
push eax
push 0
push 0
call fcn.005488f0
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x60]
mov edx, dword [edi + 0x4c]
push 0
push eax
push ecx
push 4
push edx
call fcn.0054b850
push 0x257
push 0x31f
push 0
push 0
call fcn.005488f0
mov ecx, dword [0x89e864]
mov edx, dword [ecx + 0x1aaa0]
add esp, 0x34
lea eax, [esp + 0x10]
push eax
push edx
call fcn.004d3720
mov esi, eax
call fcn.004031f0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x89e864]
push ebx
push eax
push ecx
call fcn.00429770
mov esi, eax
xor ebp, ebp
cmp esi, ebp
je 0x51116b
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jne 0x510519
mov ecx, dword [0x89e864]
add ecx, 0x293e0
call fcn.00432f90
cmp eax, 6
je 0x510506
lea ecx, [esi + 0x66c]
call fcn.00418340
test al, al
jne 0x510506
mov dword [esp + 0x24], ebp
mov dword [esp + 0xc], 0x1a9a4
jmp 0x510310
mov eax, dword [0x89e864]
mov ecx, dword [eax + ebp*8 + 0x1a9a8]
lea edx, [esp + 0x10]
push edx
push ecx
call fcn.004d3720
mov ebx, 1
mov esi, eax
call fcn.004031f0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5104e2
mov edx, dword [0x89e864]
lea ecx, [edx + ebp*8 + 0x1a9a4]
call fcn.00432f90
cmp eax, 0x3e8
jl 0x51041e
mov eax, dword [0x89e864]
lea ecx, [eax + ebp*8 + 0x1a9a4]
call fcn.00432f90
cmp eax, 0x7d0
jg 0x51041e
mov ecx, dword [0x89e864]
mov eax, dword [ecx + 0x1aa08]
test eax, eax
je 0x5104e2
mov esi, dword [ecx + 0x1aa04]
mov dword [esp + 0x20], 0
jle 0x5104e2
mov edx, dword [esp + 0xc]
add ecx, edx
call fcn.00432f90
lea ecx, [esi + 0x184]
mov ebx, eax
call fcn.00432f90
cmp eax, ebx
je 0x5103e0
mov eax, dword [esp + 0x20]
mov ecx, dword [0x89e864]
mov edx, dword [ecx + 0x1aa08]
add esi, 0x1a8
inc eax
cmp eax, edx
mov dword [esp + 0x20], eax
jl 0x5103a0
jmp 0x5104e2
mov eax, dword [edi + 0xa4]
mov ecx, dword [edi + 0xa0]
mov edx, dword [esp + 0x24]
push 0
add ecx, edx
push eax
mov eax, dword [0x89e864]
mov ebx, dword [eax + 0x29550]
xor edx, edx
cmp ebp, ebx
setne dl
push ecx
lea ecx, [esi + 0x18c]
dec edx
and edx, 4
push edx
call fcn.00432f90
push eax
jmp 0x5104da
mov ecx, dword [0x89e864]
lea ecx, [ecx + ebp*8 + 0x1a9a4]
call fcn.00432f90
cmp eax, 0xff
push 0
jne 0x510499
mov edx, dword [edi + 0xa4]
mov eax, dword [edi + 0xa0]
mov esi, dword [esp + 0x28]
mov ecx, dword [0x89e864]
push edx
add eax, esi
push eax
lea ecx, [ecx + ebp*8 + 0x1a9ac]
call fcn.00432f90
mov ecx, dword [0x89e864]
mov ebx, dword [ecx + 0x29550]
xor edx, edx
cmp ebp, ebx
sete dl
lea edx, [edx + eax*2 - 2]
push edx
push 0x1b5a
call fcn.0054b850
mov eax, dword [esp + 0x20]
add esp, 0x14
add esi, 0x23
inc ebp
add eax, 8
mov dword [esp + 0x24], esi
mov dword [esp + 0xc], eax
jmp 0x5104e2
mov eax, dword [edi + 0xa4]
mov ecx, dword [edi + 0xa0]
mov edx, dword [0x89e864]
push eax
add ecx, dword [esp + 0x2c]
push ecx
lea ecx, [edx + ebp*8 + 0x1a9a4]
call fcn.00432f90
mov edx, dword [0x89e864]
mov esi, dword [edx + 0x29550]
xor ecx, ecx
cmp ebp, esi
sete cl
lea eax, [ecx + eax*2 - 2]
push eax
push 0x1b59
call fcn.0054b850
add esp, 0x14
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x24]
add eax, 8
add esi, 0x23
inc ebp
cmp eax, 0x1a9d4
mov dword [esp + 0x24], esi
mov dword [esp + 0xc], eax
jl 0x510310
jmp 0x510535
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
push ebp
push ecx
push edx
push 0x25
jmp 0x510529
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
push ebp
push ecx
push edx
push eax
mov eax, dword [edi + 0x4c]
push eax
call fcn.0054b850
add esp, 0x14
mov ecx, dword [0x89e864]
mov eax, dword [ecx + 0x27350]
add eax, 0x29c
mov eax, dword [eax + 4]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.004d3720
mov ebx, 1
mov esi, eax
call fcn.004031f0
mov al, byte [esp + 0x20]
test al, al
je 0x510633
mov ecx, dword [0x89e864]
mov eax, dword [ecx + 0x27350]
add eax, 0x2e4
mov eax, dword [eax + 4]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.004d3720
mov esi, eax
call fcn.004031f0
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x510633
mov ecx, dword [0x89e864]
mov ecx, dword [ecx + 0x27350]
push 0
push 0xe
push 0x2a3
add ecx, 0x2e4
call fcn.00432f90
mov ecx, eax
add ecx, 0x13
mov eax, 0x51eb851f
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 0xed]
push ecx
push 0x32
call fcn.0054b850
mov edx, dword [0x89e864]
mov ecx, dword [edx + 0x27350]
add esp, 0x14
push 0
push 0xe
push 0x2da
add ecx, 0x2e4
call fcn.00432f90
mov ecx, eax
add ecx, 0x13
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
mov ecx, 0xa
idiv ecx
add edx, 0xed
push edx
push 0x32
call fcn.0054b850
add esp, 0x14
mov eax, dword [edi + 0x38]
test eax, eax
lea edx, [esp + 0x3c]
jge 0x51068c
neg eax
push eax
push 0x59c658
push edx
call fcn.0056aefc
lea eax, [esp + 0x48]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x510656
mov ecx, dword [edi + 0xb0]
sub eax, edx
mov edx, dword [edi + 0xac]
imul eax, eax, 0xd
push 0
push ecx
mov ecx, dword [edi + 0x50]
sub edx, eax
mov eax, dword [edi + 0xb4]
sub edx, 0xf
push edx
push eax
push ecx
call fcn.0054b850
add esp, 0x14
jmp 0x51069b
push eax
push 0x59c658
push edx
call fcn.0056aefc
add esp, 0xc
lea eax, [esp + 0x3c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5106a2
sub eax, edx
mov edx, eax
lea eax, [esp + 0x3c]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5106b4
push 0xd
push edx
mov edx, dword [edi + 0xa8]
sub eax, esi
imul eax, eax, 0xd
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [edi + 0x50]
push edx
mov edx, dword [edi + 0xb0]
push ecx
mov ecx, dword [edi + 0xac]
push edx
sub ecx, eax
push ecx
call fcn.0054b910
mov eax, dword [0x89e864]
mov ecx, dword [eax + 0x80b78]
add esp, 0x1c
test ecx, ecx
jne 0x51098f
cmp byte [edi], 0
je 0x510977
lea ecx, [eax + 0x293d8]
call fcn.00432f90
mov ecx, dword [0x89e864]
mov esi, eax
add ecx, 0x263c4
dec esi
call fcn.00432f90
mov ecx, eax
mov eax, esi
cdq
idiv ecx
mov ecx, dword [0x89e864]
add ecx, 0x293d8
mov dword [esp + 0x20], edx
call fcn.00432f90
dec eax
jns 0x510749
xor esi, esi
jmp 0x51075d
mov ecx, dword [0x89e864]
add ecx, 0x293d8
call fcn.00432f90
mov esi, eax
dec esi
mov ecx, dword [0x89e864]
add ecx, 0x263c4
call fcn.00432f90
cmp eax, 1
jge 0x51077a
mov ecx, 1
jmp 0x51078d
mov ecx, dword [0x89e864]
add ecx, 0x263c4
call fcn.00432f90
mov ecx, eax
mov eax, esi
cdq
idiv ecx
mov ecx, dword [0x89e864]
add ecx, 0x293d8
mov dword [esp + 0xc], eax
call fcn.00432f90
dec eax
jns 0x5107ae
xor ebx, ebx
jmp 0x5107c2
mov ecx, dword [0x89e864]
add ecx, 0x293d8
call fcn.00432f90
mov ebx, eax
dec ebx
mov ecx, dword [0x89e864]
add ecx, 0x263c4
call fcn.00432f90
cmp eax, 1
jge 0x5107df
mov ebp, 1
jmp 0x5107f2
mov ecx, dword [0x89e864]
add ecx, 0x263c4
call fcn.00432f90
mov ebp, eax
mov ecx, dword [0x89e864]
add ecx, 0x263c4
call fcn.00432f90
cmp eax, 1
jge 0x51080f
mov esi, 1
jmp 0x510822
mov ecx, dword [0x89e864]
add ecx, 0x263c4
call fcn.00432f90
mov esi, eax
mov ecx, dword [0x89e864]
add ecx, 0x263c4
call fcn.00432f90
mov ecx, eax
mov eax, dword [esp + 0x20]
imul eax, eax, 0x1e
cdq
idiv ecx
mov dword [esp + 0x20], 4
mov ecx, eax
mov eax, ebx
imul eax, eax, 0x1e
cdq
idiv ebp
mov ebp, 0x39
mov eax, edx
cdq
idiv esi
mov edx, dword [esp + 0xc]
add ecx, eax
inc edx
mov dword [esp + 0xc], edx
sub ebp, ecx
push ebp
call fcn.005487f0
fmul dword [0x5a4668]
push ebp
fstp dword [esp + 0x30]
call fcn.00548810
fmul dword [0x5a4664]
mov eax, dword [esp + 0x14]
add esp, 8
and eax, 0x80000007
fstp dword [esp + 0x24]
jns 0x51089b
dec eax
or eax, 0xfffffff8
inc eax
mov ecx, dword [0x89e864]
lea eax, [ecx + eax*8 + 0x26fec]
mov eax, dword [eax + 4]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.004d3720
mov ebx, 1
mov esi, eax
call fcn.004031f0
fld dword [esp + 0x24]
fadd dword [0x5a4660]
push 0
call fcn.0056e2cc
fld dword [esp + 0x2c]
fadd dword [0x5a465c]
push eax
call fcn.0056e2cc
mov ecx, dword [esp + 0x18]
push eax
add ecx, 6
push ecx
push 0x1b58
call fcn.0054b850
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
add esp, 0x14
inc edx
add ebp, 0x1e
dec eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x20], eax
jne 0x510868
mov eax, dword [0x89e864]
mov ecx, dword [eax + 0x293e4]
lea edx, [esp + 0x10]
push edx
push ecx
call fcn.004d3720
mov esi, eax
call fcn.004031f0
cmp dword [esp + 0x10], 0xffffffff
je 0x510b2a
mov eax, dword [0x89e864]
mov ecx, dword [eax + 0x293e4]
lea edx, [esp + 0x10]
push edx
push ecx
call fcn.004d3720
mov esi, eax
call fcn.004031f0
mov edx, dword [esp + 0x10]
push 0
push 0x204
push 0xf1
add edx, 0x15
push edx
push 0x1b58
jmp 0x510b22
push 0
push 0x212
push 0xf4
push 0x37
push 0x1b58
jmp 0x510b22
mov edx, dword [eax + 0x293dc]
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.004d3720
mov ebx, 1
mov esi, eax
call fcn.004031f0
mov eax, dword [esp + 0x10]
dec eax
jns 0x5109b7
xor ebp, ebp
jmp 0x5109cb
mov ecx, dword [0x89e864]
add ecx, 0x293d8
call fcn.00432f90
mov ebp, eax
dec ebp
mov edx, dword [0x89e864]
mov eax, dword [edx + 0x263c8]
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.004d3720
mov ebx, 1
mov esi, eax
call fcn.004031f0
mov eax, dword [esp + 0x10]
mov ecx, ebx
cmp eax, ecx
jl 0x510a0b
mov ecx, dword [0x89e864]
add ecx, 0x263c4
call fcn.00432f90
mov ecx, eax
mov eax, ebp
cdq
idiv ecx
mov ecx, dword [0x89e864]
mov edx, dword [ecx + 0x293ec]
push 0
push 0x20f
push 0x209
add edx, 0x15
push edx
push 0x1c20
mov esi, eax
call fcn.0054b850
add esp, 0x14
inc esi
mov dword [esp + 0xc], esi
mov ebp, 0x235
mov eax, dword [esp + 0xc]
and eax, 0x80000007
jns 0x510a55
dec eax
or eax, 0xfffffff8
inc eax
mov ecx, dword [0x89e864]
lea eax, [ecx + eax*8 + 0x26fec]
mov eax, dword [eax + 4]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.004d3720
mov ebx, 1
mov esi, eax
call fcn.004031f0
mov ecx, dword [esp + 0x10]
push 0
push 0x20f
push ebp
add ecx, 0x15
push ecx
push 0x1c20
call fcn.0054b850
mov edx, dword [esp + 0x20]
add esp, 0x14
inc edx
add ebp, 0x17
cmp ebp, 0x27a
mov dword [esp + 0xc], edx
jl 0x510a45
mov eax, dword [0x89e864]
mov ecx, dword [eax + 0x293e4]
lea edx, [esp + 0x10]
push edx
push ecx
call fcn.004d3720
mov esi, eax
call fcn.004031f0
cmp dword [esp + 0x10], 0xffffffff
je 0x510b0f
mov eax, dword [0x89e864]
mov ecx, dword [eax + 0x293e4]
lea edx, [esp + 0x10]
push edx
push ecx
call fcn.004d3720
mov esi, eax
call fcn.004031f0
mov edx, dword [esp + 0x10]
push 0
push 0x20f
push 0x21f
add edx, 6
push edx
push 0x1c20
call fcn.0054b850
add esp, 0x14
push 0
push 0x20e
push 0x21f
push 0x39
push 0x1c20
call fcn.0054b850
add esp, 0x14
mov al, byte [edi + 1]
test al, al
je 0x510b37
push edi
call fcn.00511330
mov ecx, dword [0x89e864]
mov edx, dword [ecx + 0x24608]
lea eax, [esp + 0x10]
push eax
push edx
call fcn.004d3720
mov ebx, 1
mov esi, eax
call fcn.004031f0
cmp dword [esp + 0x10], 2
jne 0x510b78
mov eax, dword [edi + 0x78]
mov ecx, dword [edi + 0x74]
mov edx, dword [edi + 0x4c]
push 0
push eax
push ecx
push ebx
push edx
call fcn.0054b850
add esp, 0x14
mov ecx, dword [0x89e864]
mov edx, dword [ecx + 0x24608]
lea eax, [esp + 0x10]
push eax
push edx
call fcn.004d3720
mov esi, eax
call fcn.004031f0
cmp dword [esp + 0x10], ebx
je 0x510bc5
mov ecx, dword [0x89e864]
mov edx, dword [ecx + 0x24608]
lea eax, [esp + 0x10]
push eax
push edx
call fcn.004d3720
mov esi, eax
call fcn.004031f0
cmp dword [esp + 0x10], 4
jne 0x510da6
mov ecx, dword [0x89e864]
mov edx, dword [ecx + 0x1aaa0]
lea eax, [esp + 0x10]
push eax
push edx
call fcn.004d3720
mov esi, eax
call fcn.004031f0
mov eax, dword [0x89e864]
mov ecx, dword [esp + 0x10]
mov dl, byte [ecx + eax + 0x26652]
mov eax, dword [edi + 0x7c]
mov ecx, dword [edi + 0x4c]
push 0
test dl, dl
mov edx, dword [edi + 0x80]
push edx
push eax
jne 0x510c0b
push 2
jmp 0x510c0d
push 0x2a
push ecx
call fcn.0054b850
mov edx, dword [0x89e864]
mov eax, dword [edx + 0x80b78]
add esp, 0x14
test eax, eax
jne 0x510cc0
push 0
push 0x641a6
push 0x8a3708
call fcn.0044ee40
push eax
push 0x213
push 0x273
call fcn.0054b7f0
add esp, 0x10
push 0xffff
push 0x641a6
push 0x8a3708
call fcn.0044ee40
push eax
push 0x213
push 0x273
call fcn.0054b790
add esp, 0x10
push 0
push 0x641a6
push 0x8a3708
call fcn.0044ee40
push eax
push 0x213
push 0x2ce
call fcn.0054b7f0
add esp, 0x10
push 0xffff
push 0x641a6
push 0x8a3708
call fcn.0044ee40
push eax
push 0x213
push 0x2ce
call fcn.0054b790
add esp, 0x10
mov ecx, dword [0x89e864]
mov edx, dword [ecx + 0x58020]
lea eax, [esp + 0x10]
push eax
push edx
call fcn.004d3720
mov esi, eax
call fcn.004031f0
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x40]
push 0x59c650
push ecx
call fcn.0056aefc
lea eax, [esp + 0x48]
add esp, 0xc
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x510d00
sub eax, ecx
mov ecx, dword [edi + 0x50]
push 0x11
push eax
mov eax, dword [edi + 0x94]
lea edx, [esp + 0x44]
push edx
mov edx, dword [edi + 0x88]
push eax
mov eax, dword [edi + 0x84]
push ecx
push edx
sub eax, 0x22
push eax
call fcn.0054b910
mov edx, dword [0x89e864]
mov eax, dword [edx + 0x58028]
add esp, 0x1c
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.004d3720
mov esi, eax
call fcn.004031f0
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x40]
push 0x59c650
push edx
call fcn.0056aefc
lea eax, [esp + 0x48]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x510d71
mov edx, dword [edi + 0x50]
sub eax, ecx
mov ecx, dword [edi + 0x94]
push 0x11
push eax
lea eax, [esp + 0x44]
push eax
mov eax, dword [edi + 0x90]
push ecx
mov ecx, dword [edi + 0x8c]
push edx
push eax
sub ecx, 0x22
push ecx
call fcn.0054b910
add esp, 0x1c
mov eax, dword [0x89e864]
mov ecx, dword [eax + 0x24608]
lea edx, [esp + 0x10]
push edx
push ecx
call fcn.004d3720
mov esi, eax
call fcn.004031f0
cmp dword [esp + 0x10], 3
jne 0x511137
mov eax, dword [0x89e864]
mov ecx, dword [eax + 0x1aaa0]
lea edx, [esp + 0x10]
push edx
push ecx
call fcn.004d3720
mov esi, eax
call fcn.004031f0
mov edx, dword [0x89e864]
mov eax, dword [esp + 0x10]
mov cl, byte [eax + edx + 0x26652]
mov edx, dword [edi + 0x7c]
mov eax, dword [edi + 0x4c]
push 0
test cl, cl
mov ecx, dword [edi + 0x80]
push ecx
push edx
jne 0x510e14
push 2
jmp 0x510e16
push 0x2a
push eax
call fcn.0054b850
mov ecx, dword [0x89e864]
mov eax, dword [ecx + 0x80b78]
add esp, 0x14
test eax, eax
jne 0x510ec9
push 0xffff
push 0x641a7
push 0x8a3708
call fcn.0044ee40
push eax
push 0x213
push 0x26f
call fcn.0054b790
add esp, 0x10
push 0
push 0x641a7
push 0x8a3708
call fcn.0044ee40
push eax
push 0x213
push 0x26f
call fcn.0054b7f0
add esp, 0x10
push 0xffff
push 0x641a7
push 0x8a3708
call fcn.0044ee40
push eax
push 0x213
push 0x2ca
call fcn.0054b790
add esp, 0x10
push 0
push 0x641a7
push 0x8a3708
call fcn.0044ee40
push eax
push 0x213
push 0x2ca
call fcn.0054b7f0
add esp, 0x10
mov eax, dword [0x89e864]
mov ecx, dword [eax + 0x58030]
lea edx, [esp + 0x10]
push edx
push ecx
call fcn.004d3720
mov esi, eax
call fcn.004031f0
mov eax, dword [0x5fc7b0]
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.004d3720
mov esi, eax
call fcn.004031f0
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x2c]
jl 0x510f8c
mov eax, dword [0x5fc7b0]
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.004d3720
mov esi, eax
call fcn.004031f0
mov ecx, dword [esp + 0x2c]
mov eax, dword [0x89e864]
push ebx
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x58030]
push edx
push ecx
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov eax, dword [0x89e864]
mov ecx, dword [eax + 0x58030]
lea edx, [esp + 0x2c]
push edx
push ecx
call fcn.004d3720
mov esi, eax
call fcn.004031f0
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
push 0x59c650
push eax
call fcn.0056aefc
lea eax, [esp + 0x48]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x510f83
jmp 0x510fcf
mov edx, dword [0x89e864]
mov eax, dword [edx + 0x58030]
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.004d3720
mov esi, eax
call fcn.004031f0
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x40]
push 0x59c650
push edx
call fcn.0056aefc
lea eax, [esp + 0x48]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x510fc8
mov ecx, dword [edi + 0x9c]
push ecx
mov ecx, dword [edi + 0x50]
sub eax, edx
push eax
mov eax, dword [edi + 0x98]
lea edx, [esp + 0x44]
push edx
mov edx, dword [edi + 0x88]
push eax
mov eax, dword [edi + 0x84]
push ecx
push edx
push eax
call fcn.0054b910
mov edx, dword [0x89e864]
mov eax, dword [edx + 0x58038]
add esp, 0x1c
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.004d3720
mov esi, eax
call fcn.004031f0
mov edx, dword [0x5fc7b0]
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.004d3720
mov esi, eax
call fcn.004031f0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
cmp eax, ecx
lea ecx, [esp + 0x2c]
push ecx
jl 0x5110c9
mov edx, dword [0x5fc7b0]
push edx
call fcn.004d3720
mov esi, eax
call fcn.004031f0
mov eax, dword [esp + 0x2c]
mov edx, dword [0x89e864]
push ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0x58038]
push ecx
push eax
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov edx, dword [0x89e864]
mov eax, dword [edx + 0x58038]
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.004d3720
mov esi, eax
call fcn.004031f0
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x40]
push 0x59c650
push edx
call fcn.0056aefc
lea eax, [esp + 0x48]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5110c0
jmp 0x511107
mov edx, dword [0x89e864]
mov eax, dword [edx + 0x58038]
push eax
call fcn.004d3720
mov esi, eax
call fcn.004031f0
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x40]
push 0x59c650
push edx
call fcn.0056aefc
lea eax, [esp + 0x48]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x511100
mov ecx, dword [edi + 0x9c]
push ecx
mov ecx, dword [edi + 0x50]
sub eax, edx
push eax
mov eax, dword [edi + 0x98]
lea edx, [esp + 0x44]
push edx
mov edx, dword [edi + 0x90]
push eax
mov eax, dword [edi + 0x8c]
push ecx
push edx
push eax
call fcn.0054b910
add esp, 0x1c
mov ecx, dword [edi + 0x70]
mov edx, dword [0x89e864]
mov eax, dword [edx + 0x293fc]
push 0
push ecx
mov ecx, dword [edi + 0x4c]
push eax
push 0x32
push ecx
call fcn.0054b850
push 0x257
push 0x31f
push 0
push 0
call fcn.005488f0
add esp, 0x24
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret