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

Disassembly:
push 0xffffffffffffffff
push 0x5ece55
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
mov eax, dword [esp + 0xf8]
push ebx
push ebp
push esi
push edi
mov edi, dword [eax + 0x10c]
mov ebx, ecx
or edi, 1
mov dword [eax + 0x10c], edi
mov dword [esp + 0x1c], ebx
mov ecx, dword [ebx + 0xc8]
shr ecx, 2
cmp ecx, 2
jl 0x499ec5
mov edi, dword [ebx + 0x5c]
lea ebp, [eax + 0x110]
add edi, 0x110
mov ecx, 4
mov esi, ebp
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x498e86
mov esi, eax
mov ecx, esi
call fcn.00460ce0
mov eax, dword [esi + 0x10c]
push 0x10
or al, 1
mov dword [esi + 0x10c], eax
mov eax, dword [ebx + 0x5c]
add eax, 0x110
push eax
push ebp
call fcn.00492780
add esp, 0xc
mov eax, esi
mov ecx, dword [ebx + 0x5c]
mov eax, dword [eax + 0x1f0]
mov ecx, dword [ecx + 0x1f0]
cmp eax, ecx
ja 0x498e9b
mov eax, ecx
mov ebp, dword [esp + 0x108]
mov ecx, ebp
mov dword [ebp + 0x1f0], eax
call fcn.0045fb90
test eax, eax
je 0x499ec5
mov eax, dword [ebx + 0xc8]
test eax, eax
jne 0x498ecb
mov dword [esp + 0x34], 0
jmp 0x498ed5
mov edx, dword [ebx + 0xc0]
mov dword [esp + 0x34], edx
mov esi, dword [ebx + 0xc8]
mov edi, dword [ebx + 0x5c]
shr esi, 3
lea ecx, [esp + 0x58]
mov dword [esp + 0x48], esi
call fcn.004918b0
xor eax, eax
mov dword [esp + 0x6c], edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], 0x5f7bac
lea ecx, [esp + 0x9c]
mov dword [esp + 0x100], eax
call fcn.005bb2c6
lea ecx, [esp + 0x74]
mov byte [esp + 0x100], 1
call fcn.004918b0
mov edi, 0x5f7a80
mov dword [esp + 0x74], edi
mov eax, dword [ebx + 0x3c]
mov byte [esp + 0x100], 2
cmp eax, 6
je 0x499c76
cmp eax, 7
je 0x499c76
cmp eax, 8
je 0x499c76
cmp eax, 1
je 0x499475
test esi, esi
mov dword [esp + 0x10], 0
jle 0x49921f
mov eax, dword [esp + 0x34]
xor esi, esi
mov ebp, dword [eax]
mov ecx, dword [eax + 4]
add eax, 4
mov dword [esp + 0x20], ecx
add eax, 4
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x3c]
sub eax, 2
je 0x499280
dec eax
je 0x49915e
dec eax
jne 0x499204
xor edi, edi
lea ecx, [esp + 0x24]
mov eax, edi
inc edi
push ecx
mov ecx, dword [ebx + 0x48]
push eax
mov dword [esp + 0x18], edi
call fcn.004f48d0
test eax, eax
je 0x499204
mov edx, dword [esp + 0x24]
test byte [edx + 8], 4
jne 0x498fa1
mov ecx, dword [edx + 0x14]
lea eax, [ecx + esi + 7]
cmp ebp, eax
mov dword [esp + 0x38], eax
jge 0x499141
mov eax, dword [esp + 0x20]
lea ebx, [ecx + 6]
sub eax, esi
sub ebp, esi
cmp ebx, eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x2c], ebp
jl 0x498ff8
mov ebx, eax
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x38]
cmp ebx, eax
mov dword [esp + 0x14], ebx
jl 0x499141
cmp eax, 6
jge 0x499104
push 0x44
call fcn.005bd3d9
mov esi, eax
add esp, 4
mov dword [esp + 0x3c], esi
test esi, esi
je 0x499081
mov edx, dword [esp + 0x1c]
mov eax, dword [0x6707bc]
mov edi, dword [edx + 0x5c]
mov dword [esi], eax
mov ecx, dword [0x6707bc]
mov dword [esi + 4], ecx
lea ebx, [esi + 0x10]
push edi
mov ecx, ebx
mov byte [esp + 0x104], 0xb
call fcn.0040ea40
mov dword [ebx], 0x5f7bac
mov edx, dword [0x6707bc]
mov ebx, dword [esp + 0x14]
mov dword [esi + 0x30], edx
mov eax, dword [0x6707bc]
mov dword [esi + 0x34], eax
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x40], edi
mov dword [esi + 8], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
jmp 0x499083
xor esi, esi
mov edi, dword [esp + 0x24]
mov ecx, esi
push edi
mov byte [esp + 0x104], 2
mov dword [esp + 0x48], esi
call fcn.005bc55a
lea ecx, [edi + 4]
push ecx
lea ecx, [esi + 4]
call fcn.005bc55a
mov edx, dword [edi + 8]
lea ecx, [edi + 0x30]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
push ecx
lea ecx, [esi + 0x30]
mov dword [esi + 0xc], eax
call fcn.005bc55a
add edi, 0x34
lea ecx, [esi + 0x34]
push edi
call fcn.005bc55a
mov edx, dword [esp + 0xa4]
push esi
push edx
lea ecx, [esp + 0xa4]
call fcn.005bb38c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
dec eax
mov ecx, dword [ecx + 0x48]
push eax
call fcn.004f4910
push eax
lea ecx, [esp + 0x78]
call fcn.00491be0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
cmp eax, 7
jge 0x49910e
mov eax, 7
cmp ebx, 7
jl 0x499141
mov ecx, dword [esp + 0x44]
test ecx, ecx
jne 0x49912d
sub ebx, eax
add eax, 0xfffffff9
inc ebx
add edx, 0x10
push ebx
push eax
push edx
lea ecx, [esp + 0x5c]
jmp 0x49913c
sub ebx, eax
add eax, 0xfffffff9
inc ebx
add edx, 0x10
push ebx
push eax
push edx
add ecx, 0x10
call fcn.004e7380
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
cmp eax, esi
jl 0x49921f
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
jmp 0x498fa1
cmp ebp, 1
jge 0x499168
mov ebp, 1
cmp ecx, ebp
jl 0x499204
mov ecx, dword [ebx + 0x44]
lea edx, [ebp - 1]
push edx
call fcn.004f3f90
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x499204
mov eax, dword [esp + 0x20]
xor edi, edi
sub eax, ebp
inc eax
test eax, eax
mov dword [esp + 0x14], eax
jle 0x499204
mov ebp, dword [esp + 0x40]
mov ecx, dword [ebx + 0x44]
lea eax, [esp + 0x18]
push eax
call fcn.004f3fe0
test eax, eax
je 0x4991eb
test edi, edi
je 0x4991cc
mov eax, dword [esp + 0x18]
lea ecx, [edi + ebp]
cmp eax, ecx
jne 0x4991bd
inc edi
jmp 0x4991d5
mov edx, dword [ebx + 0x44]
push edi
push ebp
push edx
lea ecx, [esp + 0x5c]
call fcn.004e7380
mov ebp, dword [esp + 0x18]
mov edi, 1
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
dec eax
test eax, eax
mov dword [esp + 0x14], eax
jg 0x49919a
test edi, edi
mov dword [esp + 0x40], ebp
jle 0x499204
mov ecx, dword [ebx + 0x44]
mov eax, ebp
push edi
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.004e7380
cmp dword [esp + 0x20], esi
jl 0x49921f
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x498f6c
mov ebx, dword [esp + 0x108]
lea edx, [esp + 0x50]
push 0
push edx
mov ecx, ebx
call fcn.00463500
mov eax, dword [esp + 0xa4]
xor esi, esi
lea edi, [eax - 1]
test edi, edi
jl 0x499427
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp + 0x3c]
sub eax, 2
je 0x499404
sub eax, 2
jne 0x49941e
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0xa0]
mov edx, dword [ecx + esi*4]
mov ecx, dword [eax + esi*4]
push edx
push ecx
mov ecx, ebx
call fcn.00463770
jmp 0x49941e
xor edi, edi
mov ecx, dword [ebx + 0x40]
lea edx, [esp + 0x30]
mov eax, edi
inc edi
push edx
push eax
mov dword [esp + 0x18], edi
call fcn.004f48d0
test eax, eax
je 0x499204
mov edx, dword [esp + 0x30]
test byte [edx + 8], 2
jne 0x499282
mov ecx, dword [edx + 0x10]
lea eax, [ecx + esi + 3]
cmp ebp, eax
mov dword [esp + 0x38], eax
jge 0x4993e7
mov eax, dword [esp + 0x20]
lea ebx, [ecx + 2]
sub eax, esi
sub ebp, esi
cmp ebx, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x2c], ebp
jl 0x4992d9
mov ebx, eax
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x38]
cmp ebx, eax
jl 0x4993e7
cmp eax, 2
jge 0x4993aa
push 0x30
call fcn.005bd3d9
mov esi, eax
add esp, 4
mov dword [esp + 0x3c], esi
test esi, esi
je 0x499345
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x6707bc]
mov edi, dword [eax + 0x5c]
mov dword [esi], ecx
mov edx, dword [0x6707bc]
mov dword [esi + 4], edx
lea ecx, [esi + 0x14]
mov byte [esp + 0x100], 8
call fcn.004918b0
xor eax, eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], 0x5f7bac
mov dword [esi + 0x2c], edi
mov dword [esi + 8], eax
jmp 0x499347
xor esi, esi
mov edi, dword [esp + 0x30]
mov ecx, esi
push edi
mov byte [esp + 0x104], 2
mov dword [esp + 0x18], esi
call fcn.005bc55a
lea eax, [edi + 4]
lea ecx, [esi + 4]
push eax
call fcn.005bc55a
mov ecx, dword [edi + 8]
push esi
mov dword [esi + 8], ecx
mov edx, dword [esp + 0xa8]
push edx
lea ecx, [esp + 0xa4]
call fcn.005bb38c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
dec eax
mov ecx, dword [ecx + 0x40]
push eax
call fcn.004f4910
push eax
lea ecx, [esp + 0x78]
call fcn.00491be0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
cmp eax, 3
jge 0x4993b4
mov eax, 3
cmp ebx, 3
jl 0x4993e7
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x4993d3
sub ebx, eax
add eax, 0xfffffffd
inc ebx
add edx, 0xc
push ebx
push eax
push edx
lea ecx, [esp + 0x5c]
jmp 0x4993e2
sub ebx, eax
add eax, 0xfffffffd
inc ebx
add edx, 0xc
push ebx
push eax
push edx
add ecx, 0xc
call fcn.004e7380
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
cmp eax, esi
jl 0x49921f
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
jmp 0x499282
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0xa0]
mov eax, dword [edx + esi*4]
mov edx, dword [ecx + esi*4]
push eax
push edx
mov ecx, ebx
call fcn.004636c0
inc esi
cmp esi, edi
jle 0x49924c
mov esi, 0x5f7940
lea ecx, [esp + 0x74]
mov byte [esp + 0x100], 1
mov dword [esp + 0x74], esi
call fcn.00491ab0
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], 0
call fcn.005bb2f9
mov dword [esp + 0x50], 0x5f7a5c
mov dword [esp + 0x100], 0xc
mov dword [esp + 0x54], 0
jmp 0x499ea4
lea ecx, [esp + 0x88]
call fcn.005bb2c6
lea ecx, [esp + 0xb0]
mov byte [esp + 0x100], 0xd
call fcn.005bb2c6
lea ecx, [esp + 0xc4]
mov byte [esp + 0x100], 0xe
call fcn.004918b0
mov dword [esp + 0xc4], edi
xor edi, edi
push 0x14
push edi
lea ecx, [esp + 0x90]
mov byte [esp + 0x108], 0xf
call fcn.005bb4dc
push 0x14
push edi
lea ecx, [esp + 0xb8]
call fcn.005bb4dc
mov eax, dword [ebx + 0x54]
mov ecx, dword [eax + 0x3c]
shr ecx, 2
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x3c]
cmp ecx, edi
jne 0x4994f2
mov dword [esp + 0x70], edi
jmp 0x4994f9
mov eax, dword [eax + 0x34]
mov dword [esp + 0x70], eax
cmp esi, edi
mov dword [esp + 0x3c], edi
jle 0x499b78
jmp 0x49950b
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
xor edi, edi
mov esi, dword [eax]
mov ebp, dword [eax + 4]
add eax, 4
mov dword [esp + 0x10], esi
add eax, 4
mov dword [esp + 0x20], ebp
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x58]
test eax, eax
jne 0x49957b
mov ecx, dword [ebx + 0x54]
call fcn.004f0470
mov edi, eax
cmp esi, edi
jge 0x499573
cmp esi, 3
jge 0x499547
mov esi, 3
lea eax, [edi - 1]
lea ecx, [esi - 3]
cmp eax, ebp
jl 0x499553
mov eax, ebp
add eax, 0xfffffffd
mov dword [esp + 0x10], edi
cmp eax, ecx
jl 0x499573
sub eax, ecx
inc eax
push eax
push ecx
mov ecx, dword [ebx + 0x54]
add ecx, 0xc
push ecx
lea ecx, [esp + 0x5c]
call fcn.004e7380
cmp ebp, edi
jl 0x499b78
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], 0
test eax, eax
jle 0x499b63
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x24]
xor esi, esi
lea ecx, [esp + 0x28]
lea eax, [edx + eax*4]
push esi
mov dword [esp + 0x48], eax
push ecx
mov edx, dword [eax]
mov eax, dword [esp + 0x24]
push edx
mov ecx, dword [eax + 0x5c]
add ecx, 0x264
call fcn.004f4970
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x10]
shr eax, 4
and eax, 1
mov dword [esp + 0x40], eax
je 0x4995d5
mov eax, 2
jmp 0x4995de
call fcn.004ef490
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
lea edx, [eax + edi]
cmp ebx, edx
mov dword [esp + 0x38], edx
jge 0x499a15
mov edx, ebx
lea ebx, [eax - 1]
sub edx, edi
mov ebp, edx
mov edx, dword [esp + 0x20]
sub edx, edi
cmp ebx, edx
jl 0x499606
mov ebx, edx
mov edx, dword [esp + 0x38]
cmp ebx, ebp
mov dword [esp + 0x10], edx
jl 0x499a15
mov eax, dword [esp + 0x40]
test eax, eax
je 0x499837
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x4c], eax
push 0xd4
call fcn.005bd3d9
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
test esi, esi
je 0x49972f
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x6707bc]
mov edi, dword [ecx + 0x5c]
mov dword [esi], edx
mov eax, dword [0x6707bc]
mov dword [esi + 4], eax
mov ecx, dword [0x6707bc]
mov dword [esi + 8], ecx
lea ecx, [esi + 0x20]
mov byte [esp + 0x100], 0x13
call fcn.004918b0
mov dword [esi + 0x34], edi
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0x5f7bac
lea ebp, [esi + 0x38]
push edi
mov ecx, ebp
mov byte [esp + 0x104], 0x14
call fcn.0040ea40
mov dword [ebp], 0x5f7bac
lea ecx, [esi + 0x58]
mov byte [esp + 0x100], 0x15
call fcn.004918b0
lea ecx, [esi + 0x6c]
mov byte [esp + 0x100], 0x16
call fcn.004918b0
lea ecx, [esi + 0x80]
mov byte [esp + 0x100], 0x17
call fcn.004918b0
lea ecx, [esi + 0x94]
mov byte [esp + 0x100], 0x18
call fcn.004918b0
lea ecx, [esi + 0xa8]
mov byte [esp + 0x100], 0x19
call fcn.004918b0
lea ecx, [esi + 0xbc]
mov byte [esp + 0x100], 0x1a
call fcn.004918b0
xor eax, eax
mov dword [esi + 0xd0], edi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0xc], eax
jmp 0x499731
xor esi, esi
mov edx, dword [esp + 0x90]
push esi
push edx
lea ecx, [esp + 0x90]
mov byte [esp + 0x108], 0xf
mov dword [esp + 0x38], esi
call fcn.005bb38c
mov eax, dword [ebx]
lea ecx, [esp + 0xc4]
push eax
call fcn.00491be0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xb8]
push eax
push ecx
lea ecx, [esp + 0xb8]
call fcn.005bb38c
mov edi, dword [esp + 0x18]
mov ecx, esi
push edi
call fcn.005bc55a
lea edx, [edi + 4]
lea ecx, [esi + 4]
push edx
call fcn.005bc55a
lea eax, [edi + 8]
lea ecx, [esi + 8]
push eax
call fcn.005bc55a
mov ecx, dword [edi + 0xc]
mov dword [esi + 0xc], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x10], edx
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x18]
add ecx, 0x38
push ecx
lea ecx, [esi + 0x38]
call fcn.004e7490
mov edx, dword [esp + 0x18]
lea ecx, [esi + 0x18]
add edx, 0x18
push edx
call fcn.004e7490
mov eax, dword [esp + 0x18]
mov ecx, esi
push eax
call fcn.004eef60
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x10]
test al, 0x10
je 0x4997eb
inc dword [esp + 0x2c]
test al, 0x20
je 0x4997fe
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x2c], eax
je 0x499a0d
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x14]
inc eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x4c], eax
jge 0x499a0d
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx]
lea edx, [esp + 0x18]
push 0
mov ecx, dword [ecx + 0x5c]
push edx
push eax
add ecx, 0x264
call fcn.004f4970
jmp 0x49963a
cmp ebp, 2
jge 0x4999c5
push 0xd4
call fcn.005bd3d9
mov esi, eax
add esp, 4
mov dword [esp + 0x4c], esi
test esi, esi
je 0x49993c
mov edx, dword [esp + 0x1c]
mov eax, dword [0x6707bc]
mov edi, dword [edx + 0x5c]
mov dword [esi], eax
mov ecx, dword [0x6707bc]
mov dword [esi + 4], ecx
mov edx, dword [0x6707bc]
mov dword [esi + 8], edx
lea ecx, [esi + 0x20]
mov byte [esp + 0x100], 0x1e
call fcn.004918b0
mov dword [esi + 0x34], edi
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0x5f7bac
lea ecx, [esi + 0x40]
mov byte [esp + 0x100], 0x1f
call fcn.004918b0
mov dword [esi + 0x54], edi
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0x5f7bac
lea ecx, [esi + 0x58]
mov byte [esp + 0x100], 0x20
call fcn.004918b0
lea ecx, [esi + 0x6c]
mov byte [esp + 0x100], 0x21
call fcn.004918b0
lea ecx, [esi + 0x80]
mov byte [esp + 0x100], 0x22
call fcn.004918b0
lea ecx, [esi + 0x94]
mov byte [esp + 0x100], 0x23
call fcn.004918b0
lea ecx, [esi + 0xa8]
mov byte [esp + 0x100], 0x24
call fcn.004918b0
lea ecx, [esi + 0xbc]
mov byte [esp + 0x100], 0x25
call fcn.004918b0
xor eax, eax
mov dword [esi + 0xd0], edi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0xc], eax
jmp 0x49993e
xor esi, esi
mov edi, dword [esp + 0x28]
mov ecx, esi
push edi
mov byte [esp + 0x104], 0xf
mov dword [esp + 0x34], esi
call fcn.005bc55a
lea eax, [edi + 4]
lea ecx, [esi + 4]
push eax
call fcn.005bc55a
lea ecx, [edi + 8]
push ecx
lea ecx, [esi + 8]
call fcn.005bc55a
mov edx, dword [edi + 0xc]
push esi
mov dword [esi + 0xc], edx
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
mov edx, dword [esp + 0x94]
push edx
lea ecx, [esp + 0x90]
call fcn.005bb38c
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0xc4]
mov eax, dword [eax]
push eax
call fcn.00491be0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xb8]
push ecx
push edx
lea ecx, [esp + 0xb8]
call fcn.005bb38c
mov ecx, dword [esp + 0x28]
cmp ebp, 3
jge 0x4999cf
mov ebp, 3
cmp ebx, 3
jl 0x499a15
test esi, esi
jne 0x4999f3
sub ebx, ebp
add ebp, 0xfffffffd
inc ebx
add ecx, 0x38
push ebx
push ebp
push ecx
lea ecx, [esp + 0x5c]
call fcn.004e7380
mov ecx, dword [esp + 0x28]
jmp 0x499a15
sub ebx, ebp
add ebp, 0xfffffffd
inc ebx
add ecx, 0x38
push ebx
push ebp
push ecx
lea ecx, [esi + 0x38]
call fcn.004e7380
mov ecx, dword [esp + 0x28]
jmp 0x499a15
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
cmp edx, eax
jl 0x499b63
mov edx, dword [esp + 0x40]
test edx, edx
je 0x499a31
xor ebp, ebp
jmp 0x499a34
mov ebp, dword [ecx + 0x1c]
test ebp, ebp
jle 0x499aa4
mov edx, dword [esp + 0x10]
inc ebp
lea ebx, [eax + ebp]
cmp edx, ebx
jge 0x499a96
mov edi, dword [esp + 0x20]
sub edx, eax
sub edi, eax
lea eax, [ebp - 1]
cmp eax, edi
jl 0x499a55
mov eax, edi
cmp eax, edx
mov dword [esp + 0x10], ebx
jl 0x499a96
cmp edx, 1
jge 0x499a67
mov edx, 1
cmp eax, 1
jl 0x499a96
test esi, esi
jne 0x499a80
sub eax, edx
inc eax
dec edx
push eax
add ecx, 0x18
push edx
push ecx
lea ecx, [esp + 0x5c]
jmp 0x499a8d
sub eax, edx
inc eax
dec edx
push eax
add ecx, 0x18
push edx
push ecx
lea ecx, [esi + 0x18]
call fcn.004e7380
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, ebx
cmp edx, eax
jl 0x499b63
mov edx, dword [esp + 0x40]
test edx, edx
je 0x499ab0
xor ebx, ebx
jmp 0x499ab6
mov ebx, dword [ecx + 0x68]
shr ebx, 2
mov edx, dword [esp + 0x10]
lea edi, [ebx + eax]
cmp edx, edi
jge 0x499b39
sub edx, eax
mov ebp, edx
mov edx, dword [esp + 0x20]
sub edx, eax
lea eax, [ebx - 1]
cmp eax, edx
jge 0x499ad4
mov edx, eax
cmp edx, ebp
mov dword [esp + 0x10], edi
jl 0x499b39
lea eax, [esp + 0x88]
push eax
push esi
push edx
push ebp
push ecx
mov ecx, dword [esp + 0x30]
call fcn.004c8f60
mov ecx, dword [esp + 0xd4]
mov eax, dword [esp + 0x90]
shr ecx, 2
sub eax, ecx
test eax, eax
jle 0x499b39
mov ebx, dword [esp + 0x44]
mov esi, eax
mov eax, dword [ebx]
lea ecx, [esp + 0xc4]
push eax
call fcn.00491be0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xb8]
push edx
push eax
lea ecx, [esp + 0xb8]
call fcn.005bb38c
dec esi
jne 0x499b0e
cmp dword [esp + 0x20], edi
jl 0x499b63
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push 0
push ecx
mov ecx, dword [edx + 0x54]
call fcn.004f0310
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x49958f
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x48]
inc eax
cmp eax, ecx
mov dword [esp + 0x3c], eax
jl 0x499507
mov ebx, dword [esp + 0x108]
lea eax, [esp + 0x50]
push 1
push eax
mov ecx, ebx
call fcn.00463500
mov ecx, dword [esp + 0x90]
xor esi, esi
lea edi, [ecx - 1]
test edi, edi
jl 0x499be5
mov edx, dword [esp + 0x8c]
mov ecx, dword [edx + esi*4]
mov dword [esp + 0x28], ecx
mov eax, dword [ecx + 0xcc]
test eax, eax
jne 0x499bc2
push 0
push 0
call fcn.004ee660
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0xcc]
mov edx, dword [eax + esi*4]
mov eax, dword [esp + 0xb4]
push edx
mov edx, dword [eax + esi*4]
push edx
push ecx
mov ecx, ebx
call fcn.00463840
inc esi
cmp esi, edi
jle 0x499b9d
mov esi, 0x5f7940
lea ecx, [esp + 0xc4]
mov byte [esp + 0x100], 0xe
mov dword [esp + 0xc4], esi
call fcn.00491ab0
lea ecx, [esp + 0xb0]
mov byte [esp + 0x100], 0xd
call fcn.005bb2f9
lea ecx, [esp + 0x88]
mov byte [esp + 0x100], 2
call fcn.005bb2f9
lea ecx, [esp + 0x74]
mov byte [esp + 0x100], 1
mov dword [esp + 0x74], esi
call fcn.00491ab0
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], 0
call fcn.005bb2f9
mov dword [esp + 0x50], 0x5f7a5c
mov dword [esp + 0x100], 0x26
mov dword [esp + 0x54], 0
jmp 0x499ea4
mov edi, dword [ebx + 0x5c]
lea ecx, [esp + 0xe0]
call fcn.004918b0
mov dword [esp + 0xf4], edi
mov dword [esp + 0xdc], 0
mov dword [esp + 0xd8], 0x5f7b8c
mov ecx, dword [ebx + 0x50]
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x104], 3
call fcn.004f4190
test esi, esi
mov dword [esp + 0x48], eax
jle 0x499dd9
mov dword [esp + 0x3c], esi
mov edx, dword [esp + 0x34]
mov ecx, dword [edx]
mov eax, dword [edx + 4]
add edx, 4
add edx, 4
cmp ecx, 1
mov dword [esp + 0x34], edx
jge 0x499ce4
mov ecx, 1
cmp eax, ecx
jl 0x499dc3
sub eax, ecx
inc eax
dec ecx
push ecx
mov ecx, ebx
mov dword [esp + 0x18], eax
call fcn.004b9260
mov esi, eax
cmp esi, 0xffffffff
jne 0x499d05
xor esi, esi
mov eax, dword [esp + 0x48]
xor edi, edi
cmp esi, eax
jge 0x499dc3
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x499da9
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + esi*4]
push edx
call fcn.004f4040
mov ecx, dword [ebx + 0x50]
add esp, 4
mov ebp, eax
mov eax, dword [ecx]
push esi
call dword [eax + 0x1c]
test eax, eax
jne 0x499d9c
mov eax, dword [ebx + 0x3c]
cmp eax, 6
jne 0x499d4e
cmp ebp, 0x10000000
je 0x499d68
cmp eax, 7
jne 0x499d5b
cmp ebp, 0x20000000
je 0x499d68
cmp eax, 8
jne 0x499d9c
cmp ebp, 0x30000000
jne 0x499d9c
test edi, edi
je 0x499d8f
mov ecx, dword [esp + 0x24]
add ecx, edi
cmp ecx, esi
jne 0x499d79
inc edi
jmp 0x499d98
mov edx, dword [esp + 0x24]
mov eax, dword [ebx + 0x50]
push edi
push edx
push eax
lea ecx, [esp + 0xe4]
call fcn.004e7380
mov dword [esp + 0x24], esi
mov edi, 1
dec dword [esp + 0x14]
mov eax, dword [esp + 0x48]
inc esi
cmp esi, eax
jl 0x499d13
test edi, edi
jle 0x499dc3
mov ecx, dword [esp + 0x24]
mov edx, dword [ebx + 0x50]
push edi
push ecx
push edx
lea ecx, [esp + 0xe4]
call fcn.004e7380
mov eax, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x3c], eax
jne 0x499cc7
mov ebp, dword [esp + 0x108]
mov eax, dword [esp + 0xdc]
test eax, eax
mov edi, eax
jle 0x499e20
xor esi, esi
mov eax, esi
lea ecx, [esp + 0xd8]
push eax
inc esi
call fcn.004f4160
test eax, eax
je 0x499e0a
push eax
lea ecx, [ebp + 0x2d4]
call fcn.004f4460
jmp 0x499de8
push edi
lea eax, [esp + 0xdc]
push 0
push eax
lea ecx, [ebp + 0x2d4]
call fcn.004e7380
mov edi, 0x5f7a5c
mov dword [esp + 0xd8], edi
xor ebx, ebx
lea ecx, [esp + 0xe0]
mov byte [esp + 0x100], 4
mov dword [esp + 0xdc], ebx
call fcn.00491ab0
mov esi, 0x5f7940
lea ecx, [esp + 0xe0]
mov byte [esp + 0x100], 2
mov dword [esp + 0xe0], esi
call fcn.00491ab0
lea ecx, [esp + 0x74]
mov byte [esp + 0x100], 1
mov dword [esp + 0x74], esi
call fcn.00491ab0
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], bl
call fcn.005bb2f9
mov dword [esp + 0x50], edi
mov dword [esp + 0x100], 5
mov dword [esp + 0x54], ebx
lea ecx, [esp + 0x58]
call fcn.00491ab0
lea ecx, [esp + 0x58]
mov dword [esp + 0x100], 0xffffffff
mov dword [esp + 0x58], esi
call fcn.00491ab0
mov ecx, dword [esp + 0xf8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xf4
ret 4