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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test dword [edi + 4], 0x100000
je 0x4904fc
test dword [edi + 0x20], 0x30
mov dword [esp + 0x54], 1
je 0x490504
mov dword [esp + 0x54], 0
mov eax, dword [ebp + 0xc]
add eax, 0x14
mov dword [esp + 0x20], eax
mov edi, edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
mov ebx, dword [edx + 8]
xor esi, esi
cmp ebx, esi
mov dword [esp + 0x10], ebx
je 0x49052b
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push ebx
call ecx
mov edx, dword [ebx]
mov eax, dword [edx + 0x28]
mov ecx, ebx
call eax
cmp eax, 3
jne 0x490c12
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x14]
cmp ecx, dword [eax + 8]
jl 0x4920d3
mov edx, dword [ebx]
mov eax, dword [edx + 0x60]
mov ecx, ebx
call eax
mov edx, dword [ebx]
test eax, eax
mov eax, dword [edx + 0x10]
mov ecx, ebx
je 0x4909f7
call eax
test eax, eax
mov eax, dword [edi + 0x1c]
je 0x49075f
cmp eax, esi
je 0x490589
cmp eax, 2
je 0x490589
cmp eax, 3
je 0x490589
cmp eax, 5
jne 0x491bad
mov edx, dword [ebx]
mov edx, dword [edx + 0x2c]
lea eax, [esp + 0x190]
push eax
mov ecx, ebx
call edx
mov ecx, dword [eax]
mov dword [esp + 0x120], ecx
mov edx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x74]
mov dword [esp + 0x124], edx
mov edx, dword [ebx]
mov edx, dword [edx + 0x50]
lea eax, [esp + 0xcc]
push eax
mov ecx, ebx
call edx
mov eax, dword [eax]
mov edx, dword [esi]
mov edx, dword [edx + 0xa4]
push eax
lea ecx, [esp + 0x124]
push ecx
lea eax, [esp + 0x60]
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x4905fe
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xcc], 0
mov esi, dword [esp + 0x194]
test esi, esi
je 0x490644
push 0x100ef4b8
mov edx, 0x100ef4b4
lea eax, [esp + 0xf4]
call fcn.00532c00
mov eax, dword [0x100ef808]
push esi
push 1
push eax
call dword [0x100cf260]
cmp byte [esp + 0x10c], 0
je 0x490644
mov esi, dword [esp + 0x108]
call fcn.005154d0
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx]
mov edx, dword [edx + 0x50]
lea eax, [esp + 0xb0]
push eax
call edx
push 4
lea eax, [esp + 0x70]
push eax
call dword [0x100ef7e8]
mov ecx, dword [esp + 0xb0]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x6c]
push eax
call edx
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x74]
test esi, esi
mov dword [esp + 0x18], esi
je 0x49068d
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x9c]
mov ecx, esi
call edx
push 4
lea eax, [esp + 0x6c]
push eax
call dword [0x100ef7e8]
mov ecx, dword [edi + 8]
mov eax, dword [ebp + 8]
push ecx
lea ebx, [esp + 0x6c]
call fcn.0048b590
test eax, eax
jne 0x4906e2
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov ebx, dword [esp + 0x68]
call eax
mov edx, dword [ebx]
mov edx, dword [edx + 0xc]
mov ecx, ebx
mov dword [esp + 0x14], eax
call edx
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x491bd5
mov eax, dword [esp + 0x68]
xor ebx, ebx
cmp eax, ebx
je 0x4906f8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x68], ebx
mov eax, dword [esi]
mov edx, dword [eax + 0xa0]
mov ecx, esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x490720
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x6c], ebx
mov eax, dword [esp + 0xb0]
cmp eax, ebx
je 0x49073a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xb0], ebx
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x49074e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x58], ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x490510
cmp eax, esi
je 0x490776
cmp eax, 2
je 0x490776
cmp eax, 3
je 0x490776
cmp eax, 5
jne 0x491ccc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x70], 1
jne 0x4908f5
push 4
lea ecx, [esp + 0x64]
push ecx
call dword [0x100ef7e8]
lea ebx, [esp + 0x60]
call fcn.00485640
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
lea eax, [esp + 0x1a8]
push eax
call edx
mov ecx, dword [eax]
mov esi, dword [ebp + 8]
mov dword [esp + 0x128], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x12c], edx
mov edx, dword [esp + 0x60]
mov eax, dword [ecx]
mov eax, dword [eax + 0xa4]
push edx
lea edx, [esp + 0x12c]
push edx
lea edx, [esp + 0x94]
push edx
call eax
lea eax, [esp + 0x1a8]
call fcn.00505660
push 4
lea ecx, [esp + 0x80]
push ecx
call dword [0x100ef7e8]
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x7c]
push eax
call edx
mov esi, dword [esi + 0x74]
test esi, esi
mov dword [esp + 0x18], esi
je 0x490823
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov edx, dword [esi]
mov eax, dword [edx + 0x9c]
mov ecx, esi
call eax
push 4
lea ecx, [esp + 0x78]
push ecx
call dword [0x100ef7e8]
mov edx, dword [edi + 8]
mov eax, dword [ebp + 8]
push edx
lea ebx, [esp + 0x78]
call fcn.0048b590
test eax, eax
jne 0x490878
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov ebx, dword [esp + 0x74]
call edx
mov edx, dword [ebx]
mov edx, dword [edx + 0xc]
mov ecx, ebx
mov dword [esp + 0x14], eax
call edx
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x491cf8
mov eax, dword [esp + 0x74]
xor ebx, ebx
cmp eax, ebx
je 0x49088e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x74], ebx
mov eax, dword [esi]
mov edx, dword [eax + 0xa0]
mov ecx, esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, dword [esp + 0x7c]
cmp eax, ebx
je 0x4908b6
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x7c], ebx
mov eax, dword [esp + 0x8c]
cmp eax, ebx
je 0x4908d0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x8c], ebx
mov eax, dword [esp + 0x60]
cmp eax, ebx
je 0x4908e4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x60], ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x490510
mov eax, dword [edi + 0x28]
mov edx, dword [edi + 0x24]
mov ecx, dword [0x100ef48c]
push eax
mov eax, dword [edi + 0x20]
push edx
mov edx, dword [edi + 0x18]
push eax
mov eax, dword [edi + 0x14]
push esi
push edx
mov edx, dword [edi + 0x10]
push eax
mov eax, dword [edi + 0xc]
push edx
mov edx, dword [edi + 8]
push eax
mov eax, dword [edi + 4]
push edx
mov edx, dword [edi]
add ecx, 0x190
push eax
mov eax, dword [ecx]
push edx
mov edx, dword [eax + 0x24]
call edx
call eax
mov esi, eax
test esi, esi
mov dword [esp + 0x38], esi
jne 0x491dfc
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x74]
test esi, esi
mov dword [esp + 0x18], esi
je 0x490956
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x9c]
mov ecx, esi
call edx
push 4
lea eax, [esp + 0x98]
push eax
call dword [0x100ef7e8]
mov ecx, dword [edi + 8]
mov eax, dword [ebp + 8]
push ecx
lea ebx, [esp + 0x98]
call fcn.0048b590
test eax, eax
jne 0x4909b4
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov ebx, dword [esp + 0x94]
call eax
mov edx, dword [ebx]
mov edx, dword [edx + 0xc]
mov ecx, ebx
mov dword [esp + 0x14], eax
call edx
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x491dd4
mov eax, dword [esp + 0x94]
test eax, eax
je 0x4909d2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x94], 0
mov eax, dword [esi]
mov edx, dword [eax + 0xa0]
mov ecx, esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x490510
call eax
test eax, eax
je 0x49240f
mov eax, dword [edi + 0x1c]
cmp eax, esi
jne 0x490be5
mov edx, dword [ebx]
mov edx, dword [edx + 0x2c]
lea eax, [esp + 0x180]
push eax
mov ecx, ebx
call edx
mov ecx, dword [eax]
mov dword [esp + 0x168], ecx
mov edx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x74]
mov dword [esp + 0x16c], edx
mov edx, dword [ebx]
mov edx, dword [edx + 0x50]
lea eax, [esp + 0xc4]
push eax
mov ecx, ebx
call edx
mov eax, dword [eax]
mov edx, dword [esi]
mov edx, dword [edx + 0xa4]
push eax
lea ecx, [esp + 0x16c]
push ecx
lea eax, [esp + 0x64]
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x490a81
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xc4], 0
mov esi, dword [esp + 0x184]
test esi, esi
je 0x490ac7
push 0x100ef4b8
mov edx, 0x100ef4b4
lea eax, [esp + 0xf4]
call fcn.00532c00
mov eax, dword [0x100ef808]
push esi
push 1
push eax
call dword [0x100cf260]
cmp byte [esp + 0x10c], 0
je 0x490ac7
mov esi, dword [esp + 0x108]
call fcn.005154d0
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x50]
lea eax, [esp + 0x34]
push eax
call edx
push 4
lea eax, [esp + 0x74]
push eax
call dword [0x100ef7e8]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x70]
push eax
call edx
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x74]
test esi, esi
mov dword [esp + 0x18], esi
je 0x490b0a
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x9c]
mov ecx, esi
call edx
push 4
lea eax, [esp + 0x9c]
push eax
call dword [0x100ef7e8]
mov ecx, dword [edi + 8]
mov eax, dword [ebp + 8]
push ecx
lea ebx, [esp + 0x9c]
call fcn.0048b590
test eax, eax
jne 0x490b68
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov ebx, dword [esp + 0x98]
call eax
mov edx, dword [ebx]
mov edx, dword [edx + 0xc]
mov ecx, ebx
mov dword [esp + 0x14], eax
call edx
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x491e13
mov eax, dword [esp + 0x98]
xor ebx, ebx
cmp eax, ebx
je 0x490b84
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x98], ebx
mov eax, dword [esi]
mov edx, dword [eax + 0xa0]
mov ecx, esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, dword [esp + 0x70]
cmp eax, ebx
je 0x490bac
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x70], ebx
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x490bc0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x490bd4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x5c], ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x490510
cmp eax, 2
je 0x491f0a
cmp eax, 1
je 0x491f21
cmp eax, 3
je 0x491f21
cmp eax, 4
je 0x491f21
cmp eax, 5
je 0x491f21
mov eax, dword [ebx]
mov edx, dword [eax + 0x60]
mov ecx, ebx
call edx
test eax, eax
mov ecx, ebx
je 0x491ae6
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
call edx
test eax, eax
je 0x491360
mov ecx, dword [edi + 0x20]
test ecx, 1
je 0x490c4b
test ecx, 0x40
jne 0x4920d3
test ecx, 0x30
je 0x490c60
test dword [edi + 4], 0x100000
je 0x4920d3
mov eax, dword [edi + 0x1c]
cmp eax, esi
je 0x490c71
cmp eax, 4
je 0x490c71
cmp eax, 5
jne 0x490c7d
test ecx, 1
jne 0x4920d3
cmp eax, esi
je 0x490c94
cmp eax, 2
je 0x490c94
cmp eax, 3
je 0x490c94
cmp eax, 5
jne 0x492019
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x14]
push 0x100cf494
lea edx, [esp + 0x1d4]
push edx
mov dword [esp + 0x144], ecx
call dword [0x100ef7e0]
mov eax, dword [esp + 0x20]
lea esi, [esp + 0x1b8]
mov dword [esp + 0x1c4], 0
call fcn.00484250
test eax, eax
je 0x490ce2
cmp dword [esp + 0x1c4], 0
je 0x492098
mov eax, dword [esp + 0x13c]
mov esi, dword [esp + 0x20]
mov dword [esi + 0x14], eax
mov edx, dword [ebx]
mov edx, dword [edx + 0x4c]
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call edx
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x490d25
add eax, 1
cmp dword [esi + 0x14], eax
jne 0x490d25
mov eax, dword [esi + 0x14]
mov ecx, dword [esi]
lea edx, [ecx + eax*2 - 2]
mov ax, word [esi + 8]
sub ax, word [esi + 0x14]
add ax, 1
jmp 0x490d35
mov eax, dword [esi + 0x14]
mov ecx, dword [esi]
lea edx, [ecx + eax*2]
mov ax, word [esi + 8]
sub ax, word [esi + 0x14]
add ax, ax
mov dword [esp + 0xa0], edx
mov word [esp + 0x9e], ax
mov word [esp + 0x9c], ax
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
mov ecx, ebx
call edx
test dword [edi + 0x20], 1
mov esi, eax
je 0x490dca
cmp word [esp + 0x9c], 0
ja 0x4920bd
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x49210a
cmp eax, 5
je 0x49210a
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
mov ecx, ebx
call edx
cmp eax, 2
je 0x490dca
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x490da4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [edi + 0x14]
lea eax, [esp + 0x1c]
push eax
and ecx, 0xffffff7f
push ecx
push 1
mov dword [esp + 0x28], 0
call fcn.00483650
add esp, 0xc
mov esi, 2
mov eax, dword [edi + 0x20]
test al, 0x40
jne 0x490dd5
test al, 1
jne 0x490e1c
mov edx, dword [ebx]
mov eax, dword [edx + 0x28]
mov ecx, ebx
call eax
cmp eax, 2
jne 0x490e1c
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x490df3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [edi + 0x14]
lea eax, [esp + 0x1c]
and ecx, 0xffffff6f
push eax
or ecx, 0x20
push ecx
push 0
mov dword [esp + 0x28], 0
call fcn.00483650
add esp, 0xc
mov esi, 1
mov edx, dword [ebx]
mov edx, dword [edx + 0x30]
lea eax, [esp + 0x1a0]
push eax
mov ecx, ebx
call edx
mov ecx, dword [eax]
mov dword [esp + 0x110], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x114], edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x2c]
lea ecx, [esp + 0x198]
push ecx
mov ecx, ebx
call edx
mov ecx, dword [eax]
mov dword [esp + 0x158], ecx
mov edx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x74]
mov eax, dword [esp + 0x1c]
push eax
push esi
lea eax, [esp + 0x118]
push eax
lea eax, [esp + 0x164]
mov dword [esp + 0x168], edx
mov edx, dword [ecx]
mov edx, dword [edx + 0xa8]
push eax
lea eax, [esp + 0x50]
push eax
call edx
mov eax, dword [esp + 0x19c]
test eax, eax
mov esi, eax
je 0x490ed7
push 0x100ef4b8
mov edx, 0x100ef4b4
lea eax, [esp + 0x1fc]
call fcn.00532c00
mov eax, dword [0x100ef808]
push esi
push 1
push eax
call dword [0x100cf260]
cmp byte [esp + 0x214], 0
je 0x490ed7
mov esi, dword [esp + 0x210]
call fcn.005154d0
mov esi, dword [esp + 0x1a4]
test esi, esi
je 0x490f1e
push 0x100ef4b8
mov edx, 0x100ef4b4
lea eax, [esp + 0x21c]
call fcn.00532c00
mov ecx, dword [0x100ef808]
push esi
push 1
push ecx
call dword [0x100cf260]
cmp byte [esp + 0x234], 0
je 0x490f1e
mov esi, dword [esp + 0x230]
call fcn.005154d0
push 4
lea edx, [esp + 0x34]
push edx
call dword [0x100ef7e8]
push 4
lea eax, [esp + 0x54]
push eax
call dword [0x100ef7e8]
mov ebx, dword [esp + 0x1c]
push 0x100cf494
lea ecx, [esp + 0x174]
push ecx
call dword [0x100ef7e0]
mov ecx, dword [edi + 0x20]
mov edx, dword [ebx]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x50]
push eax
mov eax, dword [edi + 0x18]
push ecx
mov ecx, dword [edi + 4]
push eax
push ecx
lea eax, [esp + 0x180]
push eax
mov ecx, ebx
call edx
mov ebx, eax
xor esi, esi
cmp ebx, esi
jne 0x492145
cmp word [esp + 0x9c], si
jbe 0x491152
push 4
lea eax, [esp + 0x4c]
push eax
call dword [0x100ef7e8]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x48]
push eax
mov eax, dword [edi + 0x20]
push eax
mov eax, dword [edi + 0x18]
push eax
mov eax, dword [edi + 4]
push eax
lea eax, [esp + 0xac]
push eax
call edx
mov ebx, eax
and eax, 0xefffffff
cmp eax, 0xc0000034
jne 0x4910b8
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x48]
push eax
mov eax, dword [edi + 0x20]
push eax
mov eax, dword [edi + 0x18]
push eax
mov eax, dword [edi + 0x14]
push eax
mov eax, dword [edi + 4]
push eax
lea eax, [esp + 0xb0]
push eax
call edx
mov ebx, eax
cmp ebx, esi
jne 0x49213c
mov eax, dword [esp + 0x20]
cmp dword [eax + 0xc], 0xffffffff
je 0x4910c0
or ecx, 0xffffffff
lea eax, [esp + 0x9c]
lea esi, [esp + 0xf0]
call fcn.004840d0
lea eax, [esp + 0x1e8]
mov edx, esi
call fcn.00484510
mov ecx, dword [eax + 4]
lea eax, [esp + 0x1c8]
mov edx, esi
call fcn.004843a0
mov ecx, dword [eax]
mov dword [esp + 0x160], ecx
mov edx, dword [eax + 4]
push 8
lea eax, [esp + 0x164]
push eax
lea ecx, [esp + 0x138]
push ecx
mov dword [esp + 0x170], edx
call dword [0x100ef7ec]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0xd4]
push eax
lea eax, [esp + 0x134]
push eax
call edx
test eax, eax
jne 0x4910c0
mov eax, dword [esp + 0xd4]
test al, 0x20
jne 0x4910c0
mov ecx, dword [esp + 0x1c]
or eax, 0x20
mov dword [esp + 0xd4], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
push eax
lea eax, [esp + 0x134]
push eax
call edx
jmp 0x4910c0
cmp ebx, esi
jne 0x49213c
push 4
lea eax, [esp + 0xbc]
push eax
call dword [0x100ef7e8]
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0xb8]
push eax
call edx
mov edx, dword [esp + 0xb8]
mov ebx, dword [edx]
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov eax, dword [ebx + 0x18]
push edx
xor esi, esi
call eax
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x49110a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x48]
cmp eax, esi
mov dword [esp + 0x30], eax
je 0x491122
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0xb8]
cmp ecx, esi
je 0x491140
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov eax, dword [esp + 0x48]
mov dword [esp + 0xb8], esi
cmp eax, esi
je 0x491176
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x48], esi
jmp 0x491176
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x491162
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x50]
cmp eax, esi
mov dword [esp + 0x30], eax
je 0x491176
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
call edx
cmp eax, 2
je 0x4911d8
push 4
lea eax, [esp + 0xc4]
push eax
call dword [0x100ef7e8]
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0xc0]
push eax
call edx
mov edx, dword [esp + 0xc0]
mov ebx, dword [edx]
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov eax, dword [ebx + 0x18]
push edx
call eax
mov eax, dword [esp + 0xc0]
cmp eax, esi
je 0x4911d8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xc0], esi
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x40]
push eax
push ecx
push edx
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0xe0]
push ecx
call fcn.004b8680
mov edi, dword [eax]
add esp, 0x14
test edi, edi
mov dword [esp + 0x18], edi
je 0x491213
mov edx, dword [edi]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x491231
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xd0], 0
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.0048b1a0
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebx]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x74]
test esi, esi
mov dword [esp + 0x64], esi
je 0x49125c
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x9c]
mov ecx, esi
call edx
push 4
lea eax, [esp + 0x94]
push eax
call dword [0x100ef7e8]
mov ecx, dword [ebx + 8]
mov eax, dword [ebp + 8]
push ecx
lea ebx, [esp + 0x94]
call fcn.0048b590
test eax, eax
mov ebx, dword [esp + 0x10]
jne 0x4912c0
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov edi, dword [esp + 0x90]
mov ecx, ebx
call eax
mov edx, dword [edi]
mov edx, dword [edx + 0xc]
mov ecx, edi
mov dword [esp + 0x14], eax
call edx
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x492182
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x90]
test eax, eax
je 0x4912de
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x90], 0
mov eax, dword [esi]
mov edx, dword [eax + 0xa0]
mov ecx, esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
xor esi, esi
cmp edi, esi
je 0x491300
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
mov eax, dword [esp + 0x50]
cmp eax, esi
je 0x491314
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x491328
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x40]
cmp eax, esi
je 0x49133c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x491350
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], esi
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov edi, dword [ebp + 0x10]
jmp 0x490510
mov eax, dword [edi + 0x1c]
cmp eax, esi
je 0x49137a
cmp eax, 2
je 0x49137a
cmp eax, 3
je 0x49137a
cmp eax, 5
jne 0x49222a
mov ecx, dword [edi + 0x20]
mov edx, ecx
and edx, 1
je 0x491390
test ecx, 0x40
jne 0x4920d3
cmp eax, esi
je 0x491399
cmp eax, 5
jne 0x4913a1
cmp edx, esi
jne 0x4920d3
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x14]
push 0x100cf494
lea ecx, [esp + 0x1e4]
push ecx
mov dword [esp + 0x154], eax
call dword [0x100ef7e0]
mov eax, dword [esp + 0x20]
lea esi, [esp + 0xd8]
mov dword [esp + 0xe4], 0
call fcn.00484250
test eax, eax
je 0x4913ef
cmp dword [esp + 0xe4], 0
je 0x49225d
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14c]
mov dword [ecx + 0x14], edx
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
je 0x491429
add eax, 1
cmp edx, eax
jne 0x491429
mov eax, edx
mov edx, dword [ecx]
lea eax, [edx + eax*2 - 2]
mov dword [esp + 0xac], eax
mov ax, word [ecx + 8]
sub ax, word [ecx + 0x14]
add ax, 1
jmp 0x49143d
mov eax, dword [ecx]
lea edx, [eax + edx*2]
mov ax, word [ecx + 8]
sub ax, word [ecx + 0x14]
mov dword [esp + 0xac], edx
mov edx, dword [edi + 0x20]
add ax, ax
mov esi, edx
and esi, 1
mov word [esp + 0xaa], ax
mov word [esp + 0xa8], ax
je 0x491477
test ax, ax
ja 0x492269
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x492295
cmp eax, 5
je 0x492295
mov eax, dword [ebp + 8]
cmp dword [eax + 0x70], 1
jne 0x491981
push 4
lea ecx, [esp + 0x2c]
push ecx
call dword [0x100ef7e8]
mov eax, dword [edi + 0x14]
and eax, 0xffffff7f
test esi, esi
jne 0x4914a3
and eax, 0xffffffef
or eax, 0x20
lea edx, [esp + 0x28]
push edx
push eax
push esi
call fcn.00483650
mov eax, dword [ebx]
mov edx, dword [eax + 0x30]
add esp, 0xc
lea ecx, [esp + 0x178]
push ecx
mov ecx, ebx
call edx
mov ecx, dword [eax]
mov dword [esp + 0x150], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x154], edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x2c]
lea ecx, [esp + 0x1b0]
push ecx
mov ecx, ebx
call edx
mov ecx, dword [eax]
mov dword [esp + 0x140], ecx
mov edx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x74]
mov eax, dword [esp + 0x28]
push eax
xor eax, eax
test esi, esi
setne al
mov dword [esp + 0x148], edx
mov edx, dword [ecx]
mov edx, dword [edx + 0xa8]
add eax, 1
push eax
lea eax, [esp + 0x158]
push eax
lea eax, [esp + 0x14c]
push eax
lea eax, [esp + 0x4c]
push eax
call edx
lea eax, [esp + 0x1b0]
call fcn.00505660
lea eax, [esp + 0x178]
call fcn.00505660
push 4
lea eax, [esp + 0x30]
push eax
call dword [0x100ef7e8]
push 4
lea ecx, [esp + 0x50]
push ecx
call dword [0x100ef7e8]
mov esi, dword [esp + 0x28]
push 0x100cf494
lea edx, [esp + 0x18c]
push edx
call dword [0x100ef7e0]
mov edx, dword [edi + 0x20]
mov eax, dword [esi]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [edi + 0x18]
push edx
mov edx, dword [edi + 4]
push ecx
push edx
mov edx, dword [eax + 0x10]
lea ecx, [esp + 0x198]
push ecx
mov ecx, esi
call edx
mov ebx, eax
test ebx, ebx
jne 0x4922b8
cmp word [esp + 0xa8], ax
jbe 0x49178f
push 4
lea eax, [esp + 0x48]
push eax
call dword [0x100ef7e8]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x44]
push eax
mov eax, dword [edi + 0x20]
push eax
mov eax, dword [edi + 0x18]
push eax
mov eax, dword [edi + 4]
push eax
lea eax, [esp + 0xb8]
push eax
call edx
mov ebx, eax
and eax, 0xefffffff
cmp eax, 0xc0000034
jne 0x4916ef
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x20]
and eax, 0xffffff7f
test dl, 1
jne 0x49160b
and eax, 0xffffffef
or eax, 0x20
mov ecx, dword [esp + 0x28]
mov esi, dword [ecx]
lea ebx, [esp + 0x44]
push ebx
push edx
mov edx, dword [edi + 0x18]
push edx
push eax
mov eax, dword [edi + 4]
push eax
mov eax, dword [esi + 0xc]
lea edx, [esp + 0xbc]
push edx
call eax
mov ebx, eax
test ebx, ebx
jne 0x4922af
or ecx, 0xffffffff
lea eax, [esp + 0xa8]
lea esi, [esp + 0xf0]
call fcn.004840d0
cmp dword [esp + 0xfc], 0xffffffff
je 0x4916f7
lea eax, [esp + 0x1d8]
mov edx, esi
call fcn.00484510
mov ecx, dword [eax + 4]
lea eax, [esp + 0x1f0]
mov edx, esi
call fcn.004843a0
mov ecx, dword [eax]
mov dword [esp + 0x118], ecx
mov edx, dword [eax + 4]
push 8
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x88]
push ecx
mov dword [esp + 0x128], edx
call dword [0x100ef7ec]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0xc8]
push eax
lea eax, [esp + 0x84]
push eax
call edx
test eax, eax
jne 0x4916f7
mov eax, dword [esp + 0xc8]
test al, 0x20
jne 0x4916f7
mov ecx, dword [esp + 0x28]
or eax, 0x20
mov dword [esp + 0xc8], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
push eax
lea eax, [esp + 0x84]
push eax
call edx
jmp 0x4916f7
test ebx, ebx
jne 0x4922af
push 4
lea eax, [esp + 0xc0]
push eax
call dword [0x100ef7e8]
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0xbc]
push eax
call edx
mov edx, dword [esp + 0xbc]
mov esi, dword [edx]
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov eax, dword [esi + 0x18]
push edx
call eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x49173f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x44]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x491757
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xbc]
test ecx, ecx
je 0x491779
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov eax, dword [esp + 0x44]
mov dword [esp + 0xbc], 0
test eax, eax
je 0x4917b3
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x44], 0
jmp 0x4917b3
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x49179f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x4c]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x4917b3
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
call edx
cmp eax, 2
je 0x491819
push 4
lea eax, [esp + 0xb8]
push eax
call dword [0x100ef7e8]
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0xb4]
push eax
call edx
mov edx, dword [esp + 0xb4]
mov esi, dword [edx]
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov eax, dword [esi + 0x18]
push edx
call eax
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x491819
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xb4], 0
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
push eax
push ecx
push edx
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.004b8680
mov edi, dword [eax]
add esp, 0x14
test edi, edi
mov dword [esp + 0x18], edi
je 0x491851
mov edx, dword [edi]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x491869
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.0048b1a0
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebx]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x74]
test esi, esi
mov dword [esp + 0x14], esi
je 0x491894
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x9c]
mov ecx, esi
call edx
push 4
lea eax, [esp + 0x7c]
push eax
call dword [0x100ef7e8]
mov ecx, dword [ebx + 8]
mov eax, dword [ebp + 8]
push ecx
lea ebx, [esp + 0x7c]
call fcn.0048b590
test eax, eax
mov ebx, dword [esp + 0x10]
jne 0x4918e7
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx]
mov edi, eax
mov eax, dword [edx + 0xc]
call eax
cmp edi, eax
je 0x4922f5
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4918ff
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x78], 0
mov eax, dword [esi]
mov edx, dword [eax + 0xa0]
mov ecx, esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
xor esi, esi
cmp edi, esi
je 0x491921
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x491935
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x4c], esi
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x491949
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x3c]
cmp eax, esi
je 0x49195d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x491971
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x28], esi
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov edi, dword [ebp + 0x10]
jmp 0x490510
mov eax, dword [edi + 0x28]
mov ecx, dword [0x100ef48c]
push eax
mov eax, dword [edi + 0x24]
push eax
mov eax, dword [edi + 0x14]
push edx
mov edx, dword [edi + 0x18]
push 0
push edx
mov edx, dword [edi + 0x10]
push eax
mov eax, dword [edi + 0xc]
push edx
mov edx, dword [edi + 8]
push eax
mov eax, dword [edi + 4]
push edx
mov edx, dword [edi]
add ecx, 0x190
push eax
mov eax, dword [ecx]
push edx
mov edx, dword [eax + 0x24]
call edx
call eax
test eax, eax
mov dword [esp + 0x18], eax
je 0x491a37
mov ecx, dword [0x100ef48c]
mov eax, dword [edi + 8]
mov edx, dword [ecx + 0x220]
add ecx, 0x220
push eax
mov eax, dword [edx + 0x24]
call eax
call eax
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4923cb
mov edx, dword [edi + 0x28]
mov eax, dword [edi + 0x24]
mov ecx, dword [0x100ef48c]
push edx
mov edx, dword [edi + 0x20]
push eax
mov eax, dword [edi + 0x18]
push edx
mov edx, dword [edi + 0x14]
push 2
push eax
mov eax, dword [edi + 0x10]
push edx
mov edx, dword [edi + 0xc]
push eax
mov eax, dword [edi + 8]
push edx
mov edx, dword [edi + 4]
push eax
mov eax, dword [edi]
add ecx, 0x190
push edx
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x24]
call eax
call eax
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4923cb
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0x74]
test esi, esi
mov dword [esp + 0x64], esi
je 0x491a4d
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x9c]
mov ecx, esi
call eax
push 4
lea ecx, [esp + 0xa8]
push ecx
call dword [0x100ef7e8]
mov edx, dword [edi + 8]
mov eax, dword [ebp + 8]
push edx
lea ebx, [esp + 0xa8]
call fcn.0048b590
test eax, eax
jne 0x491aa3
mov ecx, dword [esp + 0xa4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov ecx, dword [esp + 0x10]
mov ebx, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, ebx
je 0x49239a
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x491ac1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xa4], 0
mov eax, dword [esi]
mov edx, dword [eax + 0xa0]
mov ecx, esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x490510
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 0xffffffff
push edx
je 0x491b54
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x1c]
lea eax, [esp + 0xf0]
push eax
mov eax, dword [edi + 0x18]
push ecx
mov ecx, dword [edi + 0x14]
push edx
mov edx, dword [edi + 0xc]
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [edi + 8]
push edx
mov edx, dword [edi + 4]
push eax
mov eax, dword [edi]
push ebx
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call fcn.0048c200
cmp dword [esp + 0x18], esi
je 0x4923e8
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push ebx
call eax
jmp 0x490510
mov ecx, dword [edi + 0x28]
mov edx, dword [edi + 0x24]
lea eax, [esp + 0xf4]
push eax
mov eax, dword [edi + 0x20]
push ecx
mov ecx, dword [edi + 0x1c]
push edx
mov edx, dword [edi + 0x18]
push eax
mov eax, dword [edi + 0x14]
push ecx
mov ecx, dword [edi + 0x10]
push edx
mov edx, dword [edi + 0xc]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [edi + 8]
push edx
mov edx, dword [edi + 4]
push eax
mov eax, dword [edi]
push ebx
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call fcn.0048dae0
cmp dword [esp + 0x18], esi
je 0x492409
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push ebx
call eax
jmp 0x490510
mov edi, dword [edi + 0x1c]
cmp edi, 1
je 0x491bbe
cmp edi, 4
jne 0x4920d3
lea esi, [esp + 0x10]
call fcn.004c5d90
mov eax, 0xc0000034
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x24]
push eax
call edx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
lea edx, [esp + 0x14]
push edx
call eax
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [esp + 0x58]
mov edx, dword [edx + 0xc]
push eax
call edx
lea esi, [esp + 0x14]
call fcn.004c5d90
lea esi, [esp + 0x24]
call fcn.004c5d90
lea esi, [esp + 0x68]
call fcn.004c5d90
lea esi, [esp + 0x18]
call fcn.004aad40
mov ebx, dword [edi + 0x20]
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x58]
lea eax, [esp + 0x14]
push eax
mov eax, dword [edi + 4]
call fcn.004bad80
mov edi, dword [eax]
xor ebx, ebx
add esp, 4
cmp edi, ebx
mov dword [esp + 0x24], edi
je 0x491c54
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
lea esi, [esp + 0x14]
call fcn.004c5d90
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov eax, dword [edi]
mov edx, dword [eax + 0x3c]
lea ecx, [esp + 0x80]
push ecx
mov ecx, edi
call edx
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.0048b1a0
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx]
lea esi, [esp + 0x24]
mov dword [ecx], eax
call fcn.004c5d90
lea esi, [esp + 0x6c]
call fcn.004c5d90
lea esi, [esp + 0xb0]
call fcn.004c5d90
lea esi, [esp + 0x58]
call fcn.004c5d90
lea esi, [esp + 0x10]
call fcn.004c5d90
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [edi + 0x1c]
cmp edi, 1
je 0x491bbe
cmp edi, 4
je 0x491bbe
lea esi, [esp + 0x10]
call fcn.004c5d90
mov eax, 0xc000000d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x24]
push eax
call edx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
lea edx, [esp + 0x14]
push edx
call eax
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [esp + 0x8c]
mov edx, dword [edx + 0xc]
push eax
call edx
lea esi, [esp + 0x14]
call fcn.004c5d90
lea esi, [esp + 0x24]
call fcn.004c5d90
lea esi, [esp + 0x74]
call fcn.004c5d90
lea esi, [esp + 0x18]
call fcn.004aad40
mov ebx, dword [edi + 0x20]
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x8c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [edi + 4]
call fcn.004bad80
mov edi, dword [eax]
add esp, 4
test edi, edi
mov dword [esp + 0x24], edi
je 0x491d7b
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
lea esi, [esp + 0x14]
call fcn.004c5d90
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.0048b1a0
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx]
lea esi, [esp + 0x24]
mov dword [ecx], eax
call fcn.004c5d90
lea esi, [esp + 0x7c]
call fcn.004c5d90
lea esi, [esp + 0x8c]
call fcn.004c5d90
lea esi, [esp + 0x60]
call fcn.004c5d90
lea esi, [esp + 0x10]
call fcn.004c5d90
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x64]
call eax
lea esi, [esp + 0x94]
call fcn.004c5d90
lea esi, [esp + 0x18]
call fcn.004aad40
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x38]
test ebx, ebx
je 0x491e08
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
lea edx, [esp + 0x14]
push edx
call eax
mov ecx, dword [eax]
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
lea eax, [esp + 0x38]
push eax
call edx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [esp + 0x5c]
mov eax, dword [eax + 0xc]
push edx
call eax
lea esi, [esp + 0x38]
call fcn.004c5d90
lea esi, [esp + 0x14]
call fcn.004c5d90
lea esi, [esp + 0x98]
call fcn.004c5d90
lea esi, [esp + 0x18]
call fcn.004aad40
mov ebx, dword [edi + 0x20]
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x5c]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x74]
call fcn.004bad80
mov edi, dword [eax]
xor ebx, ebx
add esp, 4
cmp edi, ebx
mov dword [esp + 0x14], edi
je 0x491e95
mov edx, dword [edi]
mov eax, dword [edx + 4]
push edi
call eax
lea esi, [esp + 0x38]
call fcn.004c5d90
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov edx, dword [edi]
mov edx, dword [edx + 0x3c]
lea eax, [esp + 0x80]
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.0048b1a0
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx]
lea esi, [esp + 0x14]
mov dword [ecx], eax
call fcn.004c5d90
lea esi, [esp + 0x70]
call fcn.004c5d90
lea esi, [esp + 0x34]
call fcn.004c5d90
lea esi, [esp + 0x5c]
call fcn.004c5d90
lea esi, [esp + 0x10]
call fcn.004c5d90
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [esp + 0x10]
call fcn.004c5d90
mov eax, 0xc0000035
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [esp + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x50]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call edx
push 4
lea eax, [esp + 0x38]
push eax
call dword [0x100ef7e8]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x34]
push eax
call edx
mov ebx, dword [edi + 0x20]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x24]
push eax
mov eax, dword [edi + 4]
call fcn.004bad80
mov esi, dword [eax]
xor ebx, ebx
add esp, 4
cmp esi, ebx
je 0x491f77
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x491f8b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x24], ebx
mov edi, dword [edi + 0x1c]
cmp edi, 4
je 0x491f98
cmp edi, 5
jne 0x491fb7
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
lea ecx, [esp + 0x80]
push ecx
mov ecx, esi
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
call edx
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov edi, esi
call fcn.0048b1a0
cmp esi, ebx
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx]
mov dword [ecx], eax
je 0x491fda
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x491fee
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x492002
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
cmp eax, 1
je 0x49202a
cmp eax, 4
jne 0x4920d3
lea esi, [esp + 0xd8]
call fcn.00484560
mov eax, dword [esp + 0x20]
call fcn.00484250
test eax, eax
je 0x492053
mov eax, dword [esp + 0xe4]
test eax, eax
je 0x4920a6
cmp eax, 1
jne 0x492081
cmp dword [edi + 0x1c], 4
jne 0x491bbe
test dword [edi + 0x20], 1
je 0x491bbe
lea esi, [esp + 0x10]
call fcn.004c5d90
mov eax, 0xc000000d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [esp + 0x10]
call fcn.004c5d90
mov eax, 0xc0000229
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x20]
mov dword [ecx + 0x14], eax
lea esi, [esp + 0x10]
call fcn.004c5d90
mov eax, 0xc000003a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [edi + 0x1c]
cmp edi, 2
je 0x4920ea
cmp edi, 3
je 0x4920ea
lea esi, [esp + 0x1c]
call fcn.004c5d90
lea esi, [esp + 0x10]
call fcn.004c5d90
mov eax, 0xc000000d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [esp + 0x1c]
call fcn.004c5d90
lea esi, [esp + 0x10]
call fcn.004c5d90
mov eax, 0xc0000103
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x492122
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x1c], 0
test ebx, ebx
je 0x49212e
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov eax, 0xc000000d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [esp + 0x48]
call fcn.004c5d90
lea esi, [esp + 0x50]
call fcn.004c5d90
lea esi, [esp + 0x30]
call fcn.004c5d90
lea esi, [esp + 0x40]
call fcn.004c5d90
lea esi, [esp + 0x1c]
call fcn.004c5d90
lea esi, [esp + 0x10]
call fcn.004c5d90
mov eax, ebx
and eax, 0xefffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx]
mov edx, dword [eax + 0x38]
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call edx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
lea edx, [esp + 0x38]
push edx
call eax
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [esp + 0x40]
mov edx, dword [edx + 0xc]
push eax
call edx
lea esi, [esp + 0x38]
call fcn.004c5d90
lea esi, [esp + 0x14]
call fcn.004c5d90
lea esi, [esp + 0x90]
call fcn.004c5d90
lea esi, [esp + 0x64]
call fcn.004aad40
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xc]
mov dword [ecx + 4], 2
mov edx, dword [eax + 0xc]
lea esi, [esp + 0x18]
mov dword [edx], 0
call fcn.004c5d90
lea esi, [esp + 0x50]
call fcn.004c5d90
lea esi, [esp + 0x30]
call fcn.004c5d90
lea esi, [esp + 0x40]
call fcn.004c5d90
lea esi, [esp + 0x1c]
call fcn.004c5d90
lea esi, [esp + 0x10]
call fcn.004c5d90
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [edi + 0x1c]
cmp edx, 1
je 0x49223b
cmp edx, 4
jne 0x4920d3
mov eax, dword [edi + 0x20]
mov ecx, eax
and ecx, 1
je 0x49224d
test al, 0x40
jne 0x4920d3
cmp edx, 4
jne 0x49202a
cmp ecx, esi
jmp 0x492024
mov eax, dword [esp + 0x14c]
jmp 0x49209f
mov edi, dword [edi + 0x1c]
cmp edi, 2
je 0x4920f3
cmp edi, 3
je 0x4920f3
lea esi, [esp + 0x10]
call fcn.004c5d90
mov eax, 0xc000000d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test ebx, ebx
je 0x4922a1
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push ebx
call eax
mov eax, 0xc000000d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [esp + 0x44]
call fcn.004c5d90
lea esi, [esp + 0x4c]
call fcn.004c5d90
lea esi, [esp + 0x2c]
call fcn.004c5d90
lea esi, [esp + 0x3c]
call fcn.004c5d90
lea esi, [esp + 0x28]
call fcn.004c5d90
lea esi, [esp + 0x10]
call fcn.004c5d90
mov eax, ebx
and eax, 0xefffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x38]
push eax
mov ecx, ebx
call edx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
lea edx, [esp + 0x64]
push edx
call eax
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [esp + 0x3c]
mov edx, dword [edx + 0xc]
push eax
call edx
lea esi, [esp + 0x64]
call fcn.004c5d90
lea esi, [esp + 0x38]
call fcn.004c5d90
lea esi, [esp + 0x78]
call fcn.004c5d90
lea esi, [esp + 0x14]
call fcn.004aad40
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xc]
mov dword [ecx + 4], 2
mov edx, dword [eax + 0xc]
lea esi, [esp + 0x18]
mov dword [edx], 0
call fcn.004c5d90
lea esi, [esp + 0x4c]
call fcn.004c5d90
lea esi, [esp + 0x2c]
call fcn.004c5d90
lea esi, [esp + 0x3c]
call fcn.004c5d90
lea esi, [esp + 0x28]
call fcn.004c5d90
lea esi, [esp + 0x10]
call fcn.004c5d90
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x64]
call edx
lea esi, [esp + 0xa4]
call fcn.004c5d90
lea esi, [esp + 0x64]
call fcn.004aad40
cmp dword [esp + 0x18], 0
jne 0x4923cb
mov eax, dword [edi + 0xc]
mov dword [eax + 4], 2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4923db
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esp + 0x14], esi
jne 0x49240f
mov edi, dword [esp + 0xe8]
lea esi, [esp + 0x10]
call fcn.004c5d90
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esp + 0x14], esi
je 0x49242c
mov eax, edi
call fcn.004a1f30
lea esi, [esp + 0x10]
mov edi, eax
call fcn.004c5d90
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [esp + 0xec]
lea esi, [esp + 0x10]
call fcn.004c5d90
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc