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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1820
call fcn.00500930
push ebx
push esi
push edi
xor ebx, ebx
push 0x80
lea eax, [ebp - 0xa4]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], 1
call fcn.00500130
mov ecx, 0x5dc
or eax, 0xffffffff
lea edi, [ebp - 0x1820]
add esp, 0xc
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 4]
push dword [ebp + 8]
add ecx, 0x1370
mov dword [ebp - 0x20], ebx
call fcn.00402e37
cmp eax, ebx
mov dword [ebp - 0xa8], eax
je 0x46b714
mov ecx, dword [esi + 4]
push dword [ebp + 8]
add ecx, 0x1424
call fcn.004021f8
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x46b714
mov eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
jne 0x46a709
lea eax, [ebp - 0x1820]
xor edi, edi
mov dword [ebp + 0x10], eax
mov eax, dword [0x682824]
mov eax, dword [eax + edi*4]
cmp eax, ebx
je 0x46a6f5
cmp dword [eax + 0x8a14], ebx
je 0x46a6f5
cmp dword [ebp + 0xc], edi
jne 0x46a6c9
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 8], 0xc
je 0x46a6f5
mov eax, dword [ebp - 0x1c]
push dword [ebp + 0x1c]
mov ecx, esi
movsx eax, word [eax + 6]
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
push edi
push dword [ebp + 0xc]
call fcn.0040373d
test eax, eax
je 0x46a6f5
mov eax, dword [ebp + 0x10]
inc dword [ebp - 0x20]
add dword [ebp + 0x10], 4
mov dword [eax], edi
inc edi
cmp edi, 0x5dc
jl 0x46a6a7
cmp dword [ebp - 0x20], ebx
je 0x46b714
jmp 0x46a725
mov ecx, dword [0x682824]
cmp dword [ecx + eax*4], ebx
je 0x46b714
mov dword [ebp - 0x1820], eax
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 0xac], ebx
jle 0x46b714
lea eax, [ebp - 0x1820]
push 2
mov dword [ebp - 0xc], eax
pop edi
mov esi, 0x190
push esi
push ebx
call fcn.00403aee
mov dword [ebp + 0x10], eax
push esi
fild dword [ebp + 0x10]
push ebx
fmul dword [0x633eac]
fstp dword [ebp + 0x10]
call fcn.00403aee
mov dword [ebp - 4], eax
add esp, 0x10
fild dword [ebp - 4]
fmul dword [0x633eac]
fstp dword [ebp - 0x24]
fld dword [ebp + 0x10]
fcomp dword [0x633ea8]
fnstsw ax
sahf
jae 0x46a78e
fld dword [ebp + 0x10]
fadd dword [0x633ea4]
fstp dword [ebp + 0x10]
fld dword [ebp - 0x24]
fcomp dword [0x633ea8]
fnstsw ax
sahf
jae 0x46a7a8
fld dword [ebp - 0x24]
fadd dword [0x633ea4]
fstp dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
mov ecx, dword [0x682824]
mov eax, dword [eax]
mov esi, dword [ecx + eax*4]
cmp esi, ebx
je 0x46b6fb
mov eax, dword [esi + 0x8098]
movzx eax, byte [eax + 0x4c]
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
add ecx, 0x1484
call fcn.0040248c
test eax, eax
je 0x46b714
mov eax, dword [ebp - 0x1c]
mov al, byte [eax + 8]
cmp al, 0xb
je 0x46a968
cmp byte [esi + 0x8138], 3
jne 0x46a975
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
push 4
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0xa2]
push eax
mov byte [ebp - 0xa4], 0x31
mov byte [ebp - 0xa3], 3
call fcn.00500360
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x9e]
push eax
call fcn.00500360
mov eax, dword [ebp - 0xc]
push edi
mov eax, dword [eax]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00500360
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x9a]
push eax
call fcn.00500360
mov eax, dword [ebp - 0x10]
push edi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00500360
mov eax, dword [ebp + 0x1c]
push edi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x96]
push eax
call fcn.00500360
add esp, 0x48
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], ebx
push edi
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00500360
lea eax, [ebp + 0x10]
push edi
push eax
lea eax, [ebp - 0x92]
push eax
mov dword [ebp + 0x10], ebx
call fcn.00500360
lea eax, [ebp + 0x10]
push edi
push eax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp + 0x10], ebx
call fcn.00500360
mov eax, dword [ebp - 8]
add esp, 0x24
mov eax, dword [eax + 4]
mov al, byte [eax + 0x3882a]
cmp al, 1
je 0x46a8f1
cmp al, 3
jne 0x46a911
mov eax, dword [esi + 0x8098]
push 0x64
pop ecx
mov al, byte [eax + 0x3c]
mov byte [ebp + 0x13], al
movzx eax, al
cdq
idiv ecx
cmp eax, 1
je 0x46a925
cmp byte [ebp + 0x13], 3
jb 0x46a925
mov eax, dword [esi + 0x8098]
mov al, byte [eax + 0x3c]
cmp al, 0x1e
mov byte [ebp + 0x13], al
jne 0x46b6aa
mov eax, dword [ebp - 0xa8]
cmp byte [eax + 0x20], bl
je 0x46b673
cmp dword [ebp + 0xc], 0x2710
push ebx
lea eax, [ebp - 0xa4]
push 0x16
push eax
jge 0x46a95c
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
call fcn.00401b6d
push ebx
lea eax, [ebp - 0xa4]
push 0x16
push eax
mov ecx, esi
call fcn.00401b6d
jmp 0x46b6df
cmp byte [esi + 0x8138], 3
jne 0x46a7fd
cmp byte [esi + 0x8139], bl
jne 0x46a7fd
movzx eax, al
cmp eax, 0xc
jg 0x46b0cd
je 0x46af29
dec eax
je 0x46acee
dec eax
je 0x46ab73
dec eax
je 0x46a800
sub eax, edi
je 0x46a800
sub eax, 6
jne 0x46a7fd
mov eax, dword [ebp + 8]
push 4
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0xa2]
push eax
mov byte [ebp - 0xa4], 0x31
mov byte [ebp - 0xa3], 3
call fcn.00500360
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x9e]
push eax
call fcn.00500360
mov eax, dword [ebp - 0xc]
push edi
mov eax, dword [eax]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00500360
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x9a]
push eax
call fcn.00500360
lea eax, [ebp + 0x10]
push edi
push eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp + 0x10], 1
call fcn.00500360
mov eax, dword [ebp + 0x1c]
push edi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x96]
push eax
call fcn.00500360
add esp, 0x48
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], ebx
push edi
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00500360
lea eax, [ebp + 0x10]
push edi
push eax
lea eax, [ebp - 0x92]
push eax
mov dword [ebp + 0x10], ebx
call fcn.00500360
lea eax, [ebp + 0x10]
push edi
push eax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp + 0x10], ebx
call fcn.00500360
movsx eax, word [esi + 0x80d4]
add esp, 0x24
push ebx
push ebx
push ebx
push eax
movsx eax, word [esi + 0x80d2]
push eax
mov eax, dword [esi + 0x8098]
movzx eax, byte [eax + 0x3c]
push eax
lea eax, [ebp - 0xa4]
push 0x16
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
call fcn.004035d5
push 0x80
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.00500130
movsx eax, word [esi + 0x8126]
add esp, 0xc
mov ecx, esi
mov byte [esi + 0x8138], 1
push ebx
push ebx
push eax
call fcn.00402757
mov eax, dword [ebp - 0x1c]
push ebx
push ebx
push 0x64
movsx eax, word [eax + 0xa]
cdq
pop ecx
idiv ecx
mov ecx, esi
push eax
call fcn.00402126
mov eax, dword [ebp - 0xc]
push edi
mov byte [ebp - 0xa4], 0x6b
mov eax, dword [eax]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0xa3]
push eax
call fcn.00500360
mov eax, dword [esi + 0x8098]
push edi
movzx ax, byte [eax + 0x3c]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0xa1]
push eax
call fcn.00500360
add esp, 0x18
lea eax, [ebp - 0xa4]
push 5
push eax
mov eax, dword [esi + 0x8098]
movzx eax, byte [eax + 0x3c]
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
call fcn.004037e7
jmp 0x46af0f
mov eax, dword [ebp + 8]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xa2]
push eax
mov byte [ebp - 0xa4], 0x31
mov byte [ebp - 0xa3], 3
call fcn.00500360
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x9e]
push eax
call fcn.00500360
mov eax, dword [ebp - 0xc]
push edi
mov eax, dword [eax]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00500360
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x9a]
push eax
call fcn.00500360
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 4], 1
call fcn.00500360
mov eax, dword [ebp + 0x1c]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x96]
push eax
call fcn.00500360
add esp, 0x48
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push edi
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00500360
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x92]
push eax
mov dword [ebp - 4], ebx
call fcn.00500360
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 4], ebx
call fcn.00500360
movsx eax, word [esi + 0x80d4]
add esp, 0x24
push ebx
push ebx
push ebx
push eax
movsx eax, word [esi + 0x80d2]
push eax
mov eax, dword [esi + 0x8098]
movzx eax, byte [eax + 0x3c]
push eax
lea eax, [ebp - 0xa4]
push 0x16
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
call fcn.004035d5
push 0x80
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.00500130
mov eax, dword [ebp - 0x1c]
mov cx, word [eax + 0xa]
movsx eax, word [eax + 6]
mov word [ebp - 0x18], cx
lea eax, [eax + eax*4]
shl eax, 1
mov dword [ebp - 4], eax
fild dword [ebp - 4]
fadd dword [ebp + 0x10]
call fcn.00500330
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push edi
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00500360
movsx eax, word [ebp - 0x18]
lea eax, [eax + eax*4]
shl eax, 1
mov dword [ebp + 0x10], eax
fild dword [ebp + 0x10]
fadd dword [ebp - 0x24]
call fcn.00500330
mov dword [ebp + 0x10], eax
push edi
lea eax, [ebp + 0x10]
jmp 0x46b0b8
mov eax, dword [ebp + 8]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xa2]
push eax
mov byte [ebp - 0xa4], 0x31
mov byte [ebp - 0xa3], 3
call fcn.00500360
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x9e]
push eax
call fcn.00500360
mov eax, dword [ebp - 0xc]
push edi
mov eax, dword [eax]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00500360
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x9a]
push eax
call fcn.00500360
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 4], 1
call fcn.00500360
mov eax, dword [ebp + 0x1c]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x96]
push eax
call fcn.00500360
add esp, 0x48
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push edi
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00500360
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x92]
push eax
mov dword [ebp - 4], ebx
call fcn.00500360
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 4], ebx
call fcn.00500360
movsx eax, word [esi + 0x80d4]
add esp, 0x24
push ebx
push ebx
push ebx
push eax
movsx eax, word [esi + 0x80d2]
push eax
mov eax, dword [esi + 0x8098]
movzx eax, byte [eax + 0x3c]
push eax
lea eax, [ebp - 0xa4]
push 0x16
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
call fcn.004035d5
push 0x80
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.00500130
mov eax, dword [esi + 0x8098]
mov edx, dword [ebp - 8]
add esp, 0xc
movsx ecx, word [eax + 0x78]
mov edx, dword [edx + 4]
push ecx
movsx eax, word [esi + 0x812a]
mov edx, dword [edx + 0x1350]
mov eax, dword [edx + eax*4]
lea ecx, [eax + 4]
call fcn.0040201d
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x46ae56
fld dword [eax + 0x10]
call fcn.00500330
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
fld dword [eax + 0x18]
jmp 0x46aea0
mov eax, dword [esi + 0x8098]
push 0xa
pop ecx
movzx eax, byte [eax + 0x3c]
cdq
idiv ecx
cmp eax, 5
je 0x46ae86
cmp eax, 4
je 0x46ae86
push 1
mov ecx, esi
call fcn.00402dce
push edi
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.00402dce
jmp 0x46aea5
mov eax, dword [esi + 0x8098]
fld dword [eax + 0x40]
call fcn.00500330
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x8098]
fld dword [eax + 0x44]
call fcn.00500330
mov dword [ebp - 0x18], eax
movsx eax, word [ebp - 4]
lea eax, [eax + eax*4]
shl eax, 1
mov dword [ebp - 4], eax
fild dword [ebp - 4]
fadd dword [ebp + 0x10]
call fcn.00500330
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push edi
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00500360
movsx eax, word [ebp - 0x18]
lea eax, [eax + eax*4]
shl eax, 1
mov dword [ebp + 0x10], eax
fild dword [ebp + 0x10]
fadd dword [ebp - 0x24]
call fcn.00500330
mov dword [ebp + 0x10], eax
push edi
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0xa2]
push eax
call fcn.00500360
add esp, 0x18
lea eax, [ebp - 0xa4]
mov ecx, esi
push eax
call fcn.00403e9f
push 0x80
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.00500130
add esp, 0xc
jmp 0x46a800
mov eax, dword [ebp - 8]
mov ecx, dword [esi + 0x8098]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x8098]
mov al, byte [eax + 0x3c]
cmp al, byte [ecx + 0x3c]
jne 0x46a7fd
mov eax, dword [ebp + 8]
push 4
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0xa2]
push eax
mov byte [ebp - 0xa4], 0x31
mov byte [ebp - 0xa3], 3
call fcn.00500360
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x9e]
push eax
call fcn.00500360
mov eax, dword [ebp - 0xc]
push edi
mov eax, dword [eax]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00500360
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x9a]
push eax
call fcn.00500360
lea eax, [ebp + 0x10]
push edi
push eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp + 0x10], 1
call fcn.00500360
mov eax, dword [ebp + 0x1c]
push edi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x96]
push eax
call fcn.00500360
add esp, 0x48
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], ebx
push edi
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00500360
lea eax, [ebp + 0x10]
push edi
push eax
lea eax, [ebp - 0x92]
push eax
mov dword [ebp + 0x10], ebx
call fcn.00500360
lea eax, [ebp + 0x10]
push edi
push eax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp + 0x10], ebx
call fcn.00500360
movsx eax, word [esi + 0x80d4]
add esp, 0x24
push ebx
push ebx
push ebx
push eax
movsx eax, word [esi + 0x80d2]
push eax
mov eax, dword [esi + 0x8098]
movzx eax, byte [eax + 0x3c]
push eax
lea eax, [ebp - 0xa4]
push 0x16
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
call fcn.004035d5
push 0x80
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.00500130
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x8098]
fld dword [eax + 0x40]
fmul dword [0x6335a4]
call fcn.00500330
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push edi
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00500360
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x8098]
fld dword [eax + 0x44]
fmul dword [0x6335a4]
call fcn.00500330
mov dword [ebp + 0x10], eax
push edi
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0xa2]
push eax
call fcn.00500360
add esp, 0x24
jmp 0x46af01
sub eax, 0xd
je 0x46b4fb
sub eax, 7
je 0x46b2db
dec eax
je 0x46b294
sub eax, 4
jne 0x46a7fd
mov eax, dword [ebp - 8]
mov ecx, dword [esi + 0x8098]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x8098]
mov al, byte [eax + 0x3c]
cmp al, byte [ecx + 0x3c]
jne 0x46a7fd
mov eax, dword [ebp + 8]
push 4
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0xa2]
push eax
mov byte [ebp - 0xa4], 0x31
mov byte [ebp - 0xa3], 3
call fcn.00500360
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x9e]
push eax
call fcn.00500360
mov eax, dword [ebp - 0xc]
push edi
mov eax, dword [eax]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00500360
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x9a]
push eax
call fcn.00500360
lea eax, [ebp + 0x10]
push edi
push eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp + 0x10], 1
call fcn.00500360
mov eax, dword [ebp + 0x1c]
push edi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x96]
push eax
call fcn.00500360
add esp, 0x48
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], ebx
push edi
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00500360
lea eax, [ebp + 0x10]
push edi
push eax
lea eax, [ebp - 0x92]
push eax
mov dword [ebp + 0x10], ebx
call fcn.00500360
lea eax, [ebp + 0x10]
push edi
push eax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp + 0x10], ebx
call fcn.00500360
movsx eax, word [esi + 0x80d4]
add esp, 0x24
push ebx
push ebx
push ebx
push eax
movsx eax, word [esi + 0x80d2]
push eax
mov eax, dword [esi + 0x8098]
movzx eax, byte [eax + 0x3c]
push eax
lea eax, [ebp - 0xa4]
push 0x16
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
call fcn.004035d5
push 0x80
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.00500130
mov eax, dword [esi + 0x8098]
fld dword [eax + 0x40]
fmul dword [0x6335a4]
call fcn.00500330
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push edi
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00500360
mov eax, dword [esi + 0x8098]
fld dword [eax + 0x44]
fmul dword [0x6335a4]
call fcn.00500330
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push edi
push eax
lea eax, [ebp - 0xa2]
push eax
call fcn.00500360
add esp, 0x24
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
jmp 0x46af0a
mov eax, dword [ebp - 0xa8]
push 1
mov ecx, esi
push dword [eax + 0x14]
call fcn.00402a95
test eax, eax
je 0x46a7fd
mov eax, dword [ebp - 0x1c]
mov ecx, esi
mov al, byte [eax + 0xa]
push eax
call fcn.00402b3f
cmp eax, ebx
mov dword [ebp - 0x10], eax
jle 0x46a800
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 0x14]
mov dword [esi + 0x8a2c], eax
jmp 0x46af0f
mov eax, dword [ebp + 8]
push 4
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0xa2]
push eax
mov byte [ebp - 0xa4], 0x31
mov byte [ebp - 0xa3], 3
call fcn.00500360
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x9e]
push eax
call fcn.00500360
mov eax, dword [ebp - 0xc]
push edi
mov eax, dword [eax]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00500360
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x9a]
push eax
call fcn.00500360
lea eax, [ebp + 0x10]
push edi
push eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp + 0x10], 1
call fcn.00500360
mov eax, dword [ebp + 0x1c]
push edi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x96]
push eax
call fcn.00500360
add esp, 0x48
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], ebx
push edi
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00500360
lea eax, [ebp + 0x10]
push edi
push eax
lea eax, [ebp - 0x92]
push eax
mov dword [ebp + 0x10], ebx
call fcn.00500360
lea eax, [ebp + 0x10]
push edi
push eax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp + 0x10], ebx
call fcn.00500360
movsx eax, word [esi + 0x80d4]
add esp, 0x24
push ebx
push ebx
push ebx
push eax
movsx eax, word [esi + 0x80d2]
push eax
mov eax, dword [esi + 0x8098]
movzx eax, byte [eax + 0x3c]
push eax
lea eax, [ebp - 0xa4]
push 0x16
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
call fcn.004035d5
push 0x80
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.00500130
mov eax, dword [esi + 0x8098]
push 0x14
push ebx
mov ecx, dword [eax + 0x40]
mov eax, dword [eax + 0x44]
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0x14], eax
call fcn.00403aee
mov dword [ebp + 0x10], eax
push 0x14
fild dword [ebp + 0x10]
push ebx
fstp dword [ebp + 0x10]
call fcn.00403aee
mov dword [ebp - 4], eax
add esp, 0x1c
fild dword [ebp - 4]
fstp dword [ebp - 4]
fld dword [ebp + 0x10]
fcomp dword [0x6335a4]
fnstsw ax
sahf
jbe 0x46b456
fld dword [ebp + 0x10]
fsub dword [0x6335a4]
fadd dword [ebp - 0xb0]
jmp 0x46b45f
fld dword [ebp - 0xb0]
fsub dword [ebp + 0x10]
fld dword [ebp - 4]
fcomp dword [0x6335a4]
fnstsw ax
sahf
jbe 0x46b47b
fld dword [ebp - 4]
fsub dword [0x6335a4]
fadd dword [ebp - 0x14]
jmp 0x46b481
fld dword [ebp - 0x14]
fsub dword [ebp - 4]
fstp dword [ebp - 0x14]
fcom dword [0x633708]
fnstsw ax
sahf
jae 0x46b493
fstp st(0)
fldz
fcom dword [0x633ea0]
fnstsw ax
sahf
jbe 0x46b4a6
fstp st(0)
fld dword [0x633ea0]
fld dword [ebp - 0x14]
fcomp dword [0x633708]
fnstsw ax
sahf
jae 0x46b4b9
fldz
fstp dword [ebp - 0x14]
fld dword [ebp - 0x14]
fcomp dword [0x633ea0]
fnstsw ax
sahf
jbe 0x46b4ce
mov dword [ebp - 0x14], 0x45800000
call fcn.00500330
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push edi
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00500360
fld dword [ebp - 0x14]
call fcn.00500330
mov dword [ebp + 0x10], eax
push edi
lea eax, [ebp + 0x10]
jmp 0x46aef1
mov eax, dword [ebp - 8]
mov ecx, dword [esi + 0x8098]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x8098]
mov al, byte [eax + 0x3c]
cmp al, byte [ecx + 0x3c]
je 0x46a7fd
mov eax, dword [ebp + 8]
push 4
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0xa2]
push eax
mov byte [ebp - 0xa4], 0x31
mov byte [ebp - 0xa3], 3
call fcn.00500360
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x9e]
push eax
call fcn.00500360
mov eax, dword [ebp - 0xc]
push edi
mov eax, dword [eax]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00500360
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x9a]
push eax
call fcn.00500360
lea eax, [ebp + 0x10]
push edi
push eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp + 0x10], 1
call fcn.00500360
mov eax, dword [ebp + 0x1c]
push edi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x96]
push eax
call fcn.00500360
add esp, 0x48
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], ebx
push edi
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00500360
lea eax, [ebp + 0x10]
push edi
push eax
lea eax, [ebp - 0x92]
push eax
mov dword [ebp + 0x10], ebx
call fcn.00500360
lea eax, [ebp + 0x10]
push edi
push eax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp + 0x10], ebx
call fcn.00500360
movsx eax, word [esi + 0x80d4]
add esp, 0x24
push ebx
push ebx
push ebx
push eax
movsx eax, word [esi + 0x80d2]
push eax
mov eax, dword [esi + 0x8098]
movzx eax, byte [eax + 0x3c]
push eax
lea eax, [ebp - 0xa4]
push 0x16
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
call fcn.004035d5
push 0x80
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.00500130
mov eax, dword [ebp - 8]
add esp, 0xc
mov eax, dword [eax + 8]
push ebx
push ecx
mov eax, dword [eax + 0x8098]
fld dword [eax + 0x44]
fstp dword [esp]
fld dword [eax + 0x40]
movzx eax, byte [eax + 0x3c]
push ecx
mov ecx, esi
fstp dword [esp]
push eax
call fcn.004017cb
push 3
mov ecx, esi
call fcn.004025a4
jmp 0x46a800
cmp dword [ebp + 0xc], ebx
jl 0x46b681
cmp dword [ebp + 0xc], 0x5dc
jl 0x46b6aa
movsx eax, word [esi + 0x80d4]
push ebx
push ebx
push ebx
push eax
movsx eax, word [esi + 0x80d2]
push eax
movzx eax, byte [ebp + 0x13]
push eax
lea eax, [ebp - 0xa4]
push 0x16
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
jmp 0x46b6da
mov ecx, dword [ebp - 8]
push ebx
push ebx
push ebx
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 4]
movsx edx, word [eax + 0x80d4]
push edx
movsx edx, word [eax + 0x80d2]
mov eax, dword [eax + 0x8098]
push edx
movzx eax, byte [eax + 0x3c]
push eax
lea eax, [ebp - 0xa4]
push 0x16
push eax
call fcn.004035d5
push 0x80
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.00500130
add esp, 0xc
mov dword [ebp - 0x10], 1
inc dword [ebp - 0xac]
add dword [ebp - 0xc], 4
mov eax, dword [ebp - 0xac]
cmp eax, dword [ebp - 0x20]
jl 0x46a740
pop edi
pop esi
pop ebx
leave
ret 0x18