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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4da6fb
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x51d260]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov dword [esp + 0x28], ecx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
mov edx, dword [ebx]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x14], edi
cmp eax, edi
je 0x45e4f1
cmp eax, 4
jl 0x45e4f1
push 4
push edx
add ecx, 0x1c
push ecx
call fcn.004a2300
add esp, 0xc
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
cmp eax, edi
je 0x45e512
cmp eax, 8
jl 0x45e512
push 4
add ecx, 4
push ecx
lea eax, [esp + 0x24]
push eax
call fcn.004a2300
add esp, 0xc
cmp dword [esp + 0x1c], edi
mov esi, 8
mov dword [esp + 0x20], edi
jle 0x45e5c3
mov ecx, dword [esp + 0x28]
add ecx, 0x38
mov dword [esp + 0x2c], ecx
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
test eax, eax
je 0x45e552
lea edx, [esi + 4]
cmp eax, edx
jl 0x45e552
push 4
add ecx, esi
push ecx
lea eax, [esp + 0x1c]
push eax
call fcn.004a2300
add esp, 0xc
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0xc]
add esi, 4
test ecx, ecx
jne 0x45e564
xor eax, eax
jmp 0x45e56c
mov eax, dword [eax + 0x14]
sub eax, ecx
sar eax, 2
mov edx, dword [esp + 0x2c]
mov edi, dword [edx + 0x10]
mov edx, edi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x45e590
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov dword [edi], eax
add edi, 4
mov dword [ecx + 0x10], edi
jmp 0x45e5b0
cmp ecx, edi
jbe 0x45e599
call fcn.004a067d
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
push edi
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0040e5a0
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
jl 0x45e530
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
test eax, eax
je 0x45e5e5
lea edx, [esi + 4]
cmp eax, edx
jl 0x45e5e5
push 4
add ecx, esi
push ecx
lea eax, [esp + 0x24]
push eax
call fcn.004a2300
add esp, 0xc
add esi, 4
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
jle 0x45e6a4
mov ecx, dword [esp + 0x28]
add ecx, 0x68
lea edx, [esi + 4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], edx
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
test eax, eax
je 0x45e62e
cmp eax, dword [esp + 0x24]
jl 0x45e62e
push 4
add ecx, esi
push ecx
lea eax, [esp + 0x1c]
push eax
call fcn.004a2300
add esp, 0xc
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0xc]
add dword [esp + 0x24], 4
add esi, 4
test eax, eax
jne 0x45e645
xor ecx, ecx
jmp 0x45e64d
mov ecx, dword [ecx + 0x14]
sub ecx, eax
sar ecx, 2
mov edx, dword [esp + 0x2c]
mov edi, dword [edx + 0x10]
mov edx, edi
sub edx, eax
sar edx, 2
cmp edx, ecx
jae 0x45e671
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov dword [edi], eax
add edi, 4
mov dword [ecx + 0x10], edi
jmp 0x45e691
cmp eax, edi
jbe 0x45e67a
call fcn.004a067d
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
push edi
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0040e5a0
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
jl 0x45e60d
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
test eax, eax
je 0x45e6c6
lea edx, [esi + 4]
cmp eax, edx
jl 0x45e6c6
push 4
add ecx, esi
push ecx
lea eax, [esp + 0x24]
push eax
call fcn.004a2300
add esp, 0xc
add esi, 4
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
jle 0x45e785
mov ecx, dword [esp + 0x28]
add ecx, 0x50
lea edx, [esi + 4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], edx
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
test eax, eax
je 0x45e70f
cmp eax, dword [esp + 0x24]
jl 0x45e70f
push 4
add ecx, esi
push ecx
lea eax, [esp + 0x1c]
push eax
call fcn.004a2300
add esp, 0xc
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0xc]
add dword [esp + 0x24], 4
add esi, 4
test eax, eax
jne 0x45e726
xor ecx, ecx
jmp 0x45e72e
mov ecx, dword [ecx + 0x14]
sub ecx, eax
sar ecx, 2
mov edx, dword [esp + 0x2c]
mov edi, dword [edx + 0x10]
mov edx, edi
sub edx, eax
sar edx, 2
cmp edx, ecx
jae 0x45e752
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov dword [edi], eax
add edi, 4
mov dword [ecx + 0x10], edi
jmp 0x45e772
cmp eax, edi
jbe 0x45e75b
call fcn.004a067d
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
push edi
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0040e5a0
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
jl 0x45e6ee
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
test eax, eax
je 0x45e7a7
lea edx, [esi + 4]
cmp eax, edx
jl 0x45e7a7
push 4
add ecx, esi
push ecx
lea eax, [esp + 0x38]
push eax
call fcn.004a2300
add esp, 0xc
add esi, 4
cmp dword [esp + 0x30], 0
mov dword [esp + 0x20], 0
jle 0x45f095
lea ecx, [ecx]
push 0x114
call fcn.0048f878
add esp, 4
mov dword [esp + 0x34], eax
xor edi, edi
mov dword [esp + 0x90], edi
cmp eax, edi
je 0x45e7ed
mov ecx, eax
call fcn.0045e090
mov edi, eax
mov dword [esp + 0x18], eax
jmp 0x45e7f1
mov dword [esp + 0x18], edi
mov ecx, edi
mov dword [esp + 0x90], 0xffffffff
mov dword [esp + 0x34], edi
call fcn.0045daa0
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x108], ecx
mov eax, dword [ebx + 8]
test eax, eax
je 0x45e832
lea edx, [esi + 4]
cmp eax, edx
jl 0x45e832
mov eax, dword [ebx]
push 4
add eax, esi
push eax
lea ecx, [edi + 4]
push ecx
call fcn.004a2300
add esp, 0xc
mov eax, dword [ebx + 8]
add esi, 4
test eax, eax
je 0x45e856
lea edx, [esi + 4]
cmp eax, edx
jl 0x45e856
mov eax, dword [ebx]
push 4
add eax, esi
push eax
lea ecx, [edi + 0xc]
push ecx
call fcn.004a2300
add esp, 0xc
mov eax, dword [ebx + 8]
add esi, 4
test eax, eax
je 0x45e87a
lea edx, [esi + 4]
cmp eax, edx
jl 0x45e87a
mov eax, dword [ebx]
push 4
add eax, esi
push eax
lea ecx, [edi + 8]
push ecx
call fcn.004a2300
add esp, 0xc
mov eax, dword [ebx + 8]
add esi, 4
test eax, eax
je 0x45e89e
lea edx, [esi + 4]
cmp eax, edx
jl 0x45e89e
mov eax, dword [ebx]
push 4
add eax, esi
push eax
lea ecx, [edi + 0x14]
push ecx
call fcn.004a2300
add esp, 0xc
mov eax, dword [ebx + 8]
add esi, 4
test eax, eax
je 0x45e8c2
lea edx, [esi + 4]
cmp eax, edx
jl 0x45e8c2
mov eax, dword [ebx]
push 4
add eax, esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.004a2300
add esp, 0xc
mov edx, dword [edi + 8]
mov ecx, dword [edi + 0xc]
add edi, 8
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [edi + 8]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0xc]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x38]
add ecx, 0xa8
add esi, 4
call fcn.0045aad0
mov eax, dword [ebx + 8]
test eax, eax
je 0x45e915
lea edx, [esi + 4]
cmp eax, edx
jl 0x45e915
mov eax, dword [ebx]
push 4
add eax, esi
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004a2300
add esp, 0xc
add esi, 4
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
jle 0x45ea64
lea edx, [esi + 4]
mov dword [esp + 0x2c], edx
mov eax, dword [ebx + 8]
test eax, eax
je 0x45e953
cmp eax, dword [esp + 0x2c]
jl 0x45e953
mov eax, dword [ebx]
push 4
add eax, esi
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.004a2300
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x24]
add eax, 0x18
test ecx, ecx
jne 0x45e965
xor eax, eax
jmp 0x45e96d
mov eax, dword [eax + 0x14]
sub eax, ecx
sar eax, 2
mov edx, dword [esp + 0x18]
mov edi, dword [edx + 0x28]
add edx, 0x18
mov edx, edi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x45e997
mov eax, dword [esp + 0x14]
mov dword [edi], eax
mov eax, dword [esp + 0x18]
add edi, 4
add eax, 0x18
mov dword [eax + 0x10], edi
jmp 0x45e9bb
cmp ecx, edi
jbe 0x45e9a0
call fcn.004a067d
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x18]
lea edx, [esp + 0x14]
push edx
add ecx, 0x18
push edi
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0040e5a0
mov eax, dword [ebx + 8]
add dword [esp + 0x2c], 4
dec dword [esp + 0x14]
add esi, 4
test eax, eax
je 0x45e9e8
cmp eax, dword [esp + 0x2c]
jl 0x45e9e8
mov ecx, dword [ebx]
push 4
add ecx, esi
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004a2300
add esp, 0xc
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x3c]
add edx, 0x30
test ecx, ecx
jne 0x45e9fa
xor eax, eax
jmp 0x45ea02
mov eax, dword [edx + 0x14]
sub eax, ecx
sar eax, 2
mov edi, dword [edx + 0x10]
mov edx, edi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x45ea25
mov eax, dword [esp + 0x14]
mov dword [edi], eax
mov eax, dword [esp + 0x18]
add edi, 4
add eax, 0x30
mov dword [eax + 0x10], edi
jmp 0x45ea49
cmp ecx, edi
jbe 0x45ea2e
call fcn.004a067d
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x30]
lea edx, [esp + 0x14]
push edx
add ecx, 0x30
push edi
push eax
lea eax, [esp + 0x50]
push eax
call fcn.0040e5a0
mov eax, dword [esp + 0x24]
add dword [esp + 0x2c], 4
inc eax
add esi, 4
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
jl 0x45e932
mov eax, dword [ebx + 8]
test eax, eax
je 0x45ea86
lea ecx, [esi + 4]
cmp eax, ecx
jl 0x45ea86
mov edx, dword [ebx]
push 4
add edx, esi
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004a2300
add esp, 0xc
add esi, 4
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
jle 0x45ebce
lea ecx, [esi + 4]
mov dword [esp + 0x2c], ecx
mov eax, dword [ebx + 8]
test eax, eax
je 0x45eac4
cmp eax, dword [esp + 0x2c]
jl 0x45eac4
mov edx, dword [ebx]
push 4
add edx, esi
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004a2300
add esp, 0xc
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x54]
add edx, 0x48
test ecx, ecx
jne 0x45ead6
xor eax, eax
jmp 0x45eade
mov eax, dword [edx + 0x14]
sub eax, ecx
sar eax, 2
mov edi, dword [edx + 0x10]
mov edx, edi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x45eb01
mov eax, dword [esp + 0x14]
mov dword [edi], eax
mov eax, dword [esp + 0x18]
add edi, 4
add eax, 0x48
mov dword [eax + 0x10], edi
jmp 0x45eb25
cmp ecx, edi
jbe 0x45eb0a
call fcn.004a067d
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x48]
lea edx, [esp + 0x14]
push edx
add ecx, 0x48
push edi
push eax
lea eax, [esp + 0x58]
push eax
call fcn.0040e5a0
mov eax, dword [ebx + 8]
add dword [esp + 0x2c], 4
dec dword [esp + 0x14]
add esi, 4
test eax, eax
je 0x45eb52
cmp eax, dword [esp + 0x2c]
jl 0x45eb52
mov ecx, dword [ebx]
push 4
add ecx, esi
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004a2300
add esp, 0xc
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x6c]
add edx, 0x60
test ecx, ecx
jne 0x45eb64
xor eax, eax
jmp 0x45eb6c
mov eax, dword [edx + 0x14]
sub eax, ecx
sar eax, 2
mov edi, dword [edx + 0x10]
mov edx, edi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x45eb8f
mov eax, dword [esp + 0x14]
mov dword [edi], eax
mov eax, dword [esp + 0x18]
add edi, 4
add eax, 0x60
mov dword [eax + 0x10], edi
jmp 0x45ebb3
cmp ecx, edi
jbe 0x45eb98
call fcn.004a067d
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x60]
lea edx, [esp + 0x14]
push edx
add ecx, 0x60
push edi
push eax
lea eax, [esp + 0x60]
push eax
call fcn.0040e5a0
mov eax, dword [esp + 0x24]
add dword [esp + 0x2c], 4
inc eax
add esi, 4
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
jl 0x45eaa3
mov eax, dword [ebx + 8]
test eax, eax
je 0x45ebf0
lea ecx, [esi + 4]
cmp eax, ecx
jl 0x45ebf0
mov edx, dword [ebx]
push 4
add edx, esi
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004a2300
add esp, 0xc
add esi, 4
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
jle 0x45ed49
lea ecx, [esi + 4]
mov dword [esp + 0x2c], ecx
mov eax, dword [ebx + 8]
test eax, eax
je 0x45ec2e
cmp eax, dword [esp + 0x2c]
jl 0x45ec2e
mov edx, dword [ebx]
push 4
add edx, esi
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004a2300
add esp, 0xc
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x84]
add edx, 0x78
test ecx, ecx
jne 0x45ec43
xor eax, eax
jmp 0x45ec4b
mov eax, dword [edx + 0x14]
sub eax, ecx
sar eax, 2
mov edi, dword [edx + 0x10]
mov edx, edi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x45ec6e
mov eax, dword [esp + 0x14]
mov dword [edi], eax
mov eax, dword [esp + 0x18]
add edi, 4
add eax, 0x78
mov dword [eax + 0x10], edi
jmp 0x45ec92
cmp ecx, edi
jbe 0x45ec77
call fcn.004a067d
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x78]
lea edx, [esp + 0x14]
push edx
add ecx, 0x78
push edi
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0040e5a0
mov eax, dword [ebx + 8]
add dword [esp + 0x2c], 4
dec dword [esp + 0x14]
add esi, 4
test eax, eax
je 0x45ecbf
cmp eax, dword [esp + 0x2c]
jl 0x45ecbf
mov ecx, dword [ebx]
push 4
add ecx, esi
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004a2300
add esp, 0xc
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x9c]
add edx, 0x90
test ecx, ecx
jne 0x45ecd7
xor eax, eax
jmp 0x45ecdf
mov eax, dword [edx + 0x14]
sub eax, ecx
sar eax, 2
mov edi, dword [edx + 0x10]
mov edx, edi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x45ed04
mov eax, dword [esp + 0x14]
mov dword [edi], eax
mov eax, dword [esp + 0x18]
add edi, 4
add eax, 0x90
mov dword [eax + 0x10], edi
jmp 0x45ed2e
cmp ecx, edi
jbe 0x45ed0d
call fcn.004a067d
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x90]
lea edx, [esp + 0x14]
push edx
add ecx, 0x90
push edi
push eax
lea eax, [esp + 0x70]
push eax
call fcn.0040e5a0
mov eax, dword [esp + 0x24]
add dword [esp + 0x2c], 4
inc eax
add esi, 4
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
jl 0x45ec0d
mov eax, dword [ebx + 8]
test eax, eax
je 0x45ed6b
lea ecx, [esi + 4]
cmp eax, ecx
jl 0x45ed6b
mov edx, dword [ebx]
push 4
add edx, esi
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004a2300
add esp, 0xc
add esi, 4
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
jle 0x45eed2
lea ecx, [esi + 4]
mov dword [esp + 0x2c], ecx
mov eax, dword [ebx + 8]
test eax, eax
je 0x45eda9
cmp eax, dword [esp + 0x2c]
jl 0x45eda9
mov edx, dword [ebx]
push 4
add edx, esi
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004a2300
add esp, 0xc
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0xb4]
add edx, 0xa8
test ecx, ecx
jne 0x45edc1
xor eax, eax
jmp 0x45edc9
mov eax, dword [edx + 0x14]
sub eax, ecx
sar eax, 2
mov edi, dword [edx + 0x10]
mov edx, edi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x45edee
mov eax, dword [esp + 0x14]
mov dword [edi], eax
mov eax, dword [esp + 0x18]
add edi, 4
add eax, 0xa8
mov dword [eax + 0x10], edi
jmp 0x45ee18
cmp ecx, edi
jbe 0x45edf7
call fcn.004a067d
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0xa8]
lea edx, [esp + 0x14]
push edx
add ecx, 0xa8
push edi
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0040e5a0
mov eax, dword [ebx + 8]
add dword [esp + 0x2c], 4
dec dword [esp + 0x14]
add esi, 4
test eax, eax
je 0x45ee45
cmp eax, dword [esp + 0x2c]
jl 0x45ee45
mov ecx, dword [ebx]
push 4
add ecx, esi
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004a2300
add esp, 0xc
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0xcc]
add edx, 0xc0
test ecx, ecx
jne 0x45ee5d
xor eax, eax
jmp 0x45ee65
mov eax, dword [edx + 0x14]
sub eax, ecx
sar eax, 2
mov edi, dword [edx + 0x10]
mov edx, edi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x45ee8a
mov eax, dword [esp + 0x14]
mov dword [edi], eax
mov eax, dword [esp + 0x18]
add edi, 4
add eax, 0xc0
mov dword [eax + 0x10], edi
jmp 0x45eeb7
cmp ecx, edi
jbe 0x45ee93
call fcn.004a067d
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0xc0]
lea edx, [esp + 0x14]
push edx
add ecx, 0xc0
push edi
push eax
lea eax, [esp + 0x80]
push eax
call fcn.0040e5a0
mov eax, dword [esp + 0x24]
add dword [esp + 0x2c], 4
inc eax
add esi, 4
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
jl 0x45ed88
mov eax, dword [ebx + 8]
test eax, eax
je 0x45eef9
lea ecx, [esi + 4]
cmp eax, ecx
jl 0x45eef9
mov edx, dword [ebx]
mov eax, dword [esp + 0x18]
push 4
add edx, esi
push edx
add eax, 0xd8
push eax
call fcn.004a2300
add esp, 0xc
mov eax, dword [ebx + 8]
add esi, 4
test eax, eax
je 0x45ef23
lea ecx, [esi + 4]
cmp eax, ecx
jl 0x45ef23
mov edx, dword [ebx]
mov eax, dword [esp + 0x18]
push 4
add edx, esi
push edx
add eax, 0xdc
push eax
call fcn.004a2300
add esp, 0xc
mov eax, dword [ebx + 8]
add esi, 4
test eax, eax
je 0x45ef4d
lea ecx, [esi + 4]
cmp eax, ecx
jl 0x45ef4d
mov edx, dword [ebx]
mov eax, dword [esp + 0x18]
push 4
add edx, esi
push edx
add eax, 0xe4
push eax
call fcn.004a2300
add esp, 0xc
mov eax, dword [ebx + 8]
add esi, 4
test eax, eax
je 0x45ef77
lea ecx, [esi + 4]
cmp eax, ecx
jl 0x45ef77
mov edx, dword [ebx]
mov eax, dword [esp + 0x18]
push 4
add edx, esi
push edx
add eax, 0xe8
push eax
call fcn.004a2300
add esp, 0xc
mov eax, dword [ebx + 8]
add esi, 4
test eax, eax
je 0x45efa1
lea ecx, [esi + 4]
cmp eax, ecx
jl 0x45efa1
mov edx, dword [ebx]
mov eax, dword [esp + 0x18]
push 4
add edx, esi
push edx
add eax, 0x100
push eax
call fcn.004a2300
add esp, 0xc
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x100], 1
jne 0x45efc6
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov dword [eax + 0xe0], 2
mov dword [edx + 0xf4], ecx
mov eax, dword [ebx + 8]
add esi, 4
test eax, eax
je 0x45eff0
lea ecx, [esi + 4]
cmp eax, ecx
jl 0x45eff0
mov edx, dword [ebx]
mov eax, dword [esp + 0x18]
push 4
add edx, esi
push edx
add eax, 0x104
push eax
call fcn.004a2300
add esp, 0xc
mov eax, dword [ebx + 8]
add esi, 4
test eax, eax
je 0x45f01a
lea ecx, [esi + 4]
cmp eax, ecx
jl 0x45f01a
mov edx, dword [ebx]
mov eax, dword [esp + 0x18]
push 4
add edx, esi
push edx
add eax, 0x110
push eax
call fcn.004a2300
add esp, 0xc
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x2c]
add eax, 0x20
add esi, 4
test ecx, ecx
jne 0x45f031
mov dword [esp + 0x2c], ecx
jmp 0x45f03d
mov edx, dword [eax + 0x14]
sub edx, ecx
sar edx, 2
mov dword [esp + 0x2c], edx
mov edi, dword [eax + 0x10]
mov edx, edi
sub edx, ecx
sar edx, 2
cmp edx, dword [esp + 0x2c]
jae 0x45f05b
mov ecx, dword [esp + 0x18]
mov dword [edi], ecx
add edi, 4
mov dword [eax + 0x10], edi
jmp 0x45f082
cmp ecx, edi
jbe 0x45f064
call fcn.004a067d
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x20]
lea edx, [esp + 0x34]
push edx
add ecx, 0x20
push edi
push eax
lea eax, [esp + 0x88]
push eax
call fcn.0040e5a0
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x20], eax
jl 0x45e7c0
mov eax, dword [ebx + 8]
test eax, eax
je 0x45f0b7
lea ecx, [esi + 4]
cmp eax, ecx
jl 0x45f0b7
mov edx, dword [ebx]
push 4
add edx, esi
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004a2300
add esp, 0xc
add esi, 4
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
jle 0x45f17c
mov ecx, dword [esp + 0x28]
add ecx, 0x108
lea edx, [esi + 4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], edx
mov eax, dword [ebx + 8]
test eax, eax
je 0x45f103
cmp eax, dword [esp + 0x24]
jl 0x45f103
mov eax, dword [ebx]
push 4
add eax, esi
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.004a2300
add esp, 0xc
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0xc]
add dword [esp + 0x24], 4
add esi, 4
test eax, eax
jne 0x45f11a
xor ecx, ecx
jmp 0x45f122
mov ecx, dword [ecx + 0x14]
sub ecx, eax
sar ecx, 2
mov edx, dword [esp + 0x2c]
mov edi, dword [edx + 0x10]
mov edx, edi
sub edx, eax
sar edx, 2
cmp edx, ecx
jae 0x45f146
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov dword [edi], eax
add edi, 4
mov dword [ecx + 0x10], edi
jmp 0x45f169
cmp eax, edi
jbe 0x45f14f
call fcn.004a067d
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
push edi
push eax
lea eax, [esp + 0x88]
push eax
call fcn.0040e5a0
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
jl 0x45f0e2
mov eax, dword [ebx + 8]
test eax, eax
je 0x45f1a6
lea ecx, [esi + 4]
cmp eax, ecx
jl 0x45f1a6
mov edx, dword [ebx]
mov edi, dword [esp + 0x28]
push 4
add edx, esi
push edx
lea eax, [edi + 0xfc]
push eax
call fcn.004a2300
add esp, 0xc
jmp 0x45f1aa
mov edi, dword [esp + 0x28]
mov eax, dword [ebx + 8]
add esi, 4
test eax, eax
je 0x45f1d1
lea ecx, [esi + 4]
cmp eax, ecx
jl 0x45f1d1
mov edx, dword [ebx]
push 4
add edx, esi
push edx
lea eax, [edi + 0x100]
push eax
call fcn.004a2300
add esp, 0xc
mov eax, dword [ebx + 8]
add esi, 4
test eax, eax
je 0x45f1f8
lea ecx, [esi + 4]
cmp eax, ecx
jl 0x45f1f8
mov edx, dword [ebx]
push 4
add edx, esi
push edx
lea eax, [edi + 0x104]
push eax
call fcn.004a2300
add esp, 0xc
mov eax, dword [ebx + 8]
add esi, 4
test eax, eax
je 0x45f21f
lea ecx, [esi + 4]
cmp eax, ecx
jl 0x45f21f
mov edx, dword [ebx]
push 4
add edx, esi
push edx
add edi, 0x124
push edi
call fcn.004a2300
add esp, 0xc
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4