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

Disassembly:
push 0xffffffffffffffff
push 0x655011
mov eax, dword fs:[0]
push eax
sub esp, 0x6d8
mov eax, dword [0x7d9a88]
xor eax, esp
mov dword [esp + 0x6d4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7d9a88]
xor eax, esp
push eax
lea eax, [esp + 0x6ec]
mov dword fs:[0], eax
fldz
mov ebx, dword [esp + 0x700]
mov ebp, dword [esp + 0x6fc]
fst dword [esp + 0xbc]
fst dword [esp + 0xb8]
lea eax, [esp + 0xa8]
fst dword [esp + 0xc4]
mov edi, ecx
fst dword [esp + 0xc0]
push 0x3c
fst dword [esp + 0xd4]
push eax
fstp dword [esp + 0xd4]
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], ebx
xor esi, esi
call fcn.0050cd20
add esp, 8
mov ecx, ebx
call fcn.004cdc20
test eax, eax
je 0x496f76
lea ecx, [esp + 0x540]
push ecx
push esi
mov ecx, ebx
call fcn.004d8880
push eax
mov ecx, edi
call fcn.0044be20
test eax, eax
je 0x496f6a
mov edx, dword [esp + 0x554]
mov eax, dword [esp + 0x550]
push 4
push edx
push eax
mov ecx, ebp
call fcn.0053e7a0
mov ecx, dword [esp + 0x554]
mov edx, dword [esp + 0x550]
push ecx
push edx
mov ecx, ebx
call fcn.004d0530
mov ecx, ebx
mov esi, 1
call fcn.004cdc10
mov ecx, ebx
call fcn.004d84e0
test eax, eax
jne 0x496f89
test esi, esi
je 0x497588
lea ecx, [esp + 0x318]
call fcn.0053e630
xor esi, esi
mov ecx, ebp
mov dword [esp + 0x6f4], esi
mov dword [esp + 0x1c], esi
call fcn.0053ed70
push esi
mov ecx, ebx
mov dword [esp + 0x88], esi
call fcn.004da470
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
je 0x49751d
jmp 0x496fd4
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x184]
push eax
push esi
mov ecx, ebx
call fcn.004da270
test eax, eax
je case.default.0x497018
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
push 0
mov ecx, ebx
call fcn.004d8880
push eax
mov ecx, edi
call fcn.0044c020
mov eax, dword [esp + 0x184]
cmp eax, 7
ja case.default.0x497018
jmp dword [eax*4 + 0x497eac]
push esi
push 0
mov ecx, ebx
call fcn.004d8880
push eax
lea eax, [esp + 0x320]
push eax
mov ecx, edi
call fcn.0044ba40
test eax, eax
je case.default.0x497018
xor eax, eax
lea esi, [esp + 0x318]
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], eax
jmp 0x497283
mov esi, dword [esp + 0x1ac]
jmp 0x49727b
mov ecx, dword [esp + 0x1a8]
push ecx
mov ecx, dword [edi + 0x17c]
lea edx, [esp + 0x18c]
push edx
call fcn.004ced00
mov ecx, dword [esp + 0x1c8]
mov esi, eax
mov eax, dword [esp + 0x1c4]
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x4970af
cdq
lea esi, [ecx + ecx*4]
add esi, esi
idiv esi
mov esi, dword [esp + 0x24]
mov eax, edx
cdq
idiv ecx
mov dword [esp + 0x14], eax
test esi, esi
je case.default.0x497018
mov ecx, esi
call fcn.004cdc80
sub eax, 2
je 0x4970cc
sub eax, 4
jne case.default.0x497018
cmp dword [esp + 0x1cc], 0
mov eax, dword [esp + 0x14]
jne 0x4970e2
push eax
mov ecx, esi
call fcn.004d8530
push eax
push 0
mov ecx, esi
call fcn.004d8880
push eax
lea ecx, [esp + 0x320]
push ecx
mov ecx, edi
call fcn.0044ba40
test eax, eax
je case.default.0x497018
lea esi, [esp + 0x318]
jmp 0x497283
mov eax, dword [esp + 0x1b4]
mov dword [esp + 0x24], eax
test eax, eax
je case.default.0x497018
mov eax, dword [esp + 0x1b8]
add eax, 8
push 4
push eax
push eax
lea ecx, [esp + 0x23c]
call fcn.0054e7b0
mov esi, dword [0x65b33c]
lea edx, [esp + 0x5c4]
push edx
mov byte [esp + 0x6f8], 1
call esi
lea eax, [esp + 0x54]
push eax
call esi
lea ecx, [esp + 0x70]
push ecx
call esi
lea ecx, [esp + 0x42c]
call fcn.0053e630
mov eax, dword [esp + 0x1bc]
mov edx, dword [esp + 0x18]
mov ecx, eax
push eax
sar ecx, 8
push ecx
sar eax, 0x10
push eax
lea ecx, [esp + 0x23c]
mov byte [esp + 0x700], 2
mov dword [esp + 0xa4], edx
call fcn.0054c9b0
mov eax, dword [esp + 0x1d8]
mov ecx, eax
mov edx, eax
shr ecx, 8
shr edx, 0x10
mov byte [esp + 0xa0], cl
mov byte [esp + 0x9c], dl
mov edx, dword [esp + 0xa0]
push eax
mov eax, dword [esp + 0xa0]
push edx
push eax
lea ecx, [esp + 0x23c]
call fcn.0054c9d0
cmp byte [esp + 0x1e8], 0
je 0x497677
lea ecx, [esp + 0x1e8]
push ecx
jmp 0x497684
cmp dword [esp + 0x1ac], 0
je case.default.0x497018
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x49721d
mov ecx, esi
call fcn.0053eea0
push esi
call fcn.0051ed60
add esp, 4
push 0x27
push str.e:prg_vs2008kclib_dx9include..kcClassBasekcClassBase.h
push 0x114
call fcn.0051ee10
add esp, 0xc
test eax, eax
je 0x497242
mov ecx, eax
call fcn.0053e630
mov dword [esp + 0x1c], eax
jmp 0x49724a
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x1ac]
mov esi, dword [esp + 0x1c]
push edx
mov ecx, esi
call fcn.0053f360
mov eax, dword [esp + 0x22c]
mov ecx, dword [esp + 0x228]
push eax
push ecx
mov ecx, esi
call fcn.005e2040
mov ecx, eax
call fcn.005437f0
test esi, esi
je case.default.0x497018
lea edx, [esp + 0x164]
push edx
call dword [0x65b33c]
lea eax, [esp + 0x28]
push eax
call dword [0x65b33c]
lea ecx, [esp + 0x540]
push ecx
call dword [0x65b33c]
lea edx, [esp + 0x104]
push 0x80
push edx
call fcn.0050cd20
add esp, 8
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x84]
push ecx
mov ecx, esi
call fcn.005e2040
mov ecx, eax
call fcn.005411b0
lea edx, [esp + 0xf0]
push edx
lea eax, [esp + 0xf0]
push eax
mov ecx, ebp
call fcn.005e2040
mov ecx, eax
call fcn.005411b0
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x70]
push edx
mov ecx, esi
call fcn.005e2040
mov ecx, eax
call fcn.00541130
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
add ecx, eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x80]
add edx, ecx
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x30], edx
push ecx
mov edx, ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
push edx
mov ecx, esi
mov dword [esp + 0x3c], eax
call fcn.005e2040
mov ecx, eax
call fcn.00541b80
test eax, eax
je case.default.0x497018
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x70]
push ecx
mov ecx, ebp
call fcn.005e2040
mov ecx, eax
call fcn.00541130
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x6c]
lea ecx, [edx + eax]
mov edx, dword [esp + 0x80]
add eax, ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x544], eax
lea eax, [esp + 0x540]
mov dword [esp + 0x54c], ecx
mov ecx, eax
add edi, edx
push eax
add edx, ebx
push ecx
mov ecx, ebp
mov dword [esp + 0x548], edx
mov dword [esp + 0x550], edi
call fcn.005e2040
mov ecx, eax
call fcn.00541b80
test eax, eax
je 0x4974f1
mov ecx, ebp
call fcn.0053e670
lea edx, [esp + 0x110]
mov dword [esp + 0x108], eax
push edx
lea eax, [esp + 0x110]
push eax
mov ecx, ebp
call fcn.0053e660
mov ecx, dword [esp + 0x540]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
mov edx, dword [esp + 0x544]
mov dword [esp + 0x114], ecx
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x2c]
mov dword [esp + 0x118], edx
mov dword [esp + 0x120], ecx
mov ecx, ebp
mov dword [esp + 0x11c], eax
call fcn.0053e690
mov ecx, ebp
mov dword [esp + 0x104], eax
call fcn.0053e680
mov ecx, esi
mov dword [esp + 0x124], eax
call fcn.0053e670
lea edx, [esp + 0x138]
mov dword [esp + 0x130], eax
push edx
lea eax, [esp + 0x138]
push eax
mov ecx, esi
call fcn.0053e660
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
sub edx, eax
mov dword [esp + 0x13c], eax
mov eax, dword [esp + 0x34]
sub eax, ecx
mov dword [esp + 0x140], ecx
mov ecx, esi
mov dword [esp + 0x144], edx
mov dword [esp + 0x148], eax
call fcn.0053e690
mov ecx, esi
mov dword [esp + 0x12c], eax
call fcn.0053e680
lea ecx, [esp + 0x104]
push ecx
mov dword [esp + 0x150], eax
mov dword [esp + 0x160], 1
mov dword [esp + 0x154], 0xff
call fcn.00558170
add esp, 4
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x84]
inc eax
push eax
mov ecx, ebx
mov dword [esp + 0x88], eax
call fcn.004da470
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x496fd0
test ebp, ebp
je 0x497554
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x4c]
push edx
mov ecx, ebx
call fcn.004d0a40
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
push eax
push ecx
push edx
mov ecx, ebp
call fcn.005e2040
mov ecx, eax
call fcn.005415f0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x49756c
mov ecx, esi
call fcn.0053eea0
push esi
call fcn.0051ed60
add esp, 4
lea ecx, [esp + 0x318]
mov esi, 1
mov dword [esp + 0x6f4], 0xffffffff
call fcn.0053eea0
mov ecx, ebx
call fcn.004cdbf0
test eax, eax
jne 0x49759b
test esi, esi
je 0x497e3f
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x28]
push eax
call dword [0x65b33c]
mov ecx, dword [edi + 0x188]
mov edx, dword [edi + 0x18c]
mov eax, dword [edi + 0x190]
mov dword [esp + 0x28], ecx
mov ecx, dword [edi + 0x194]
mov dword [esp + 0x34], ecx
mov ecx, ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
call fcn.004d0b10
mov esi, eax
test esi, esi
je 0x497bea
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x40]
push eax
mov eax, dword [edi + 4]
push 0
lea ecx, [esp + 0x5c]
push ecx
push 1
push 0x3b
push esi
push eax
mov ecx, edi
call edx
fld dword [esp + 0x54]
call fcn.005af050
fld dword [esp + 0x58]
mov dword [esp + 0x1c], eax
call fcn.005af050
lea ecx, [esp + 0x40]
push ecx
push 0
lea edx, [esp + 0x44]
push edx
mov edx, dword [edi + 4]
lea ecx, [esp + 0x44]
push ecx
push 0x48
mov dword [esp + 0x28], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
push esi
push edx
mov ecx, edi
call eax
fld dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ecx
call fcn.005af050
fld dword [esp + 0x3c]
add eax, esi
mov dword [esp + 0x30], eax
call fcn.005af050
add eax, dword [esp + 0x14]
mov dword [esp + 0x34], eax
jmp 0x497c8c
mov edx, dword [0x8211a4]
add edx, 0x7904
push edx
lea ecx, [esp + 0x234]
call fcn.005673b0
mov ecx, eax
call fcn.00427ca0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x104]
push eax
xor esi, esi
push esi
push ecx
mov ecx, ebx
mov byte [esp + 0x5f0], 0
call fcn.004da8f0
test eax, eax
je 0x497831
cmp dword [esp + 0x158], 0xffffffff
jne 0x49778c
lea edx, [esp + 0x104]
push edx
lea eax, [esp + 0x5e8]
push eax
call fcn.005b15b2
add esp, 8
test eax, eax
je 0x497723
push 0
lea ecx, [esp + 0x108]
push ecx
lea edx, [esp + 0x434]
push edx
mov ecx, edi
call fcn.0044ba40
test eax, eax
je 0x497813
xor eax, eax
jmp 0x497710
mov cl, byte [esp + eax + 0x104]
mov byte [esp + eax + 0x5e4], cl
inc eax
test cl, cl
jne 0x497710
lea ecx, [esp + 0x42c]
call fcn.005e2040
push eax
lea ecx, [esp + 0x234]
call fcn.0054cc60
mov eax, dword [esp + 0x158]
cmp eax, 0xffffffff
jne 0x497781
mov eax, dword [esp + 0x154]
mov ecx, dword [esp + 0x150]
mov edx, dword [esp + 0x14c]
push eax
mov eax, dword [esp + 0x14c]
push ecx
mov ecx, dword [esp + 0x14c]
push edx
push eax
push ecx
lea ecx, [esp + 0x244]
call fcn.0054dc60
jmp 0x497813
mov edx, dword [esp + 0x144]
push eax
push edx
jmp 0x497807
lea eax, [esp + 0x104]
push eax
lea ecx, [esp + 0x5e8]
push ecx
call fcn.005b15b2
add esp, 8
test eax, eax
je 0x4977f7
lea edx, [esp + 0xa4]
push edx
lea eax, [esp + 0x108]
push eax
mov ecx, edi
call fcn.0044bc30
test eax, eax
je 0x497813
xor eax, eax
jmp 0x4977d0
mov cl, byte [esp + eax + 0x104]
mov byte [esp + eax + 0x5e4], cl
inc eax
test cl, cl
jne 0x4977d0
mov ecx, dword [esp + 0xa4]
push ecx
lea ecx, [esp + 0x234]
call fcn.0054cdd0
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x144]
push edx
push eax
lea ecx, [esp + 0x238]
call fcn.0054dcc0
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x104]
push ecx
inc esi
push esi
push edx
mov ecx, ebx
call fcn.004da8f0
test eax, eax
jne 0x4976be
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x24]
cmp byte [eax], 0
je 0x497bbd
mov ecx, dword [esp + 0x1b8]
mov dword [esp + 0x14], eax
jmp 0x497860
mov esi, dword [esp + 0x1c0]
imul esi, ecx
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
sub esi, eax
cmp dword [esp + 0x20], esi
jle 0x4978b5
mov eax, dword [esp + 0x8c]
inc eax
cmp eax, dword [esp + 0x1e0]
mov dword [esp + 0x8c], eax
jge 0x497bbd
mov edx, dword [esp + 0x1e4]
mov eax, dword [esp + 0x98]
add edx, ecx
add dword [esp + 0x48], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x14]
push eax
call fcn.0050c4a0
mov edx, dword [esp + 0x1bc]
add esp, 4
push 0
push 0
movzx ebx, ax
lea ecx, [esp + 0x1d8]
push ecx
push edx
push ebx
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x248]
mov dword [esp + 0x3c], ebx
call fcn.0054e8f0
lea ecx, [esp + 0x230]
call fcn.0054ca10
lea ecx, [esp + 0x564]
push 0x80
push ecx
mov esi, eax
call fcn.0050cd20
add esp, 8
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0x8c]
push eax
mov ecx, esi
call fcn.005e2040
mov ecx, eax
call fcn.005411b0
lea ecx, [esp + 0xe8]
push ecx
lea edx, [esp + 0xe8]
push edx
mov ecx, ebp
call fcn.005e2040
mov ecx, eax
call fcn.005411b0
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
call fcn.005e2040
mov ecx, eax
call fcn.00541130
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x68]
mov edi, dword [esp + 0x44]
lea ecx, [edx + eax]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x60], ecx
mov ecx, eax
push eax
add edi, edx
push ecx
mov ecx, esi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x64], edi
call fcn.005e2040
mov ecx, eax
call fcn.00541b80
test eax, eax
je 0x497b34
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, ebp
call fcn.005e2040
mov ecx, eax
call fcn.00541130
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x48]
mov edx, dword [esp + 0x88]
mov edi, dword [esp + 0x38]
add ecx, eax
add eax, ebx
mov ebx, dword [esp + 0x18]
add edi, edx
add edx, ebx
mov dword [esp + 0x70], edx
lea edx, [esp + 0x70]
mov dword [esp + 0x74], eax
push edx
mov eax, edx
mov dword [esp + 0x80], ecx
push eax
mov ecx, ebp
mov dword [esp + 0x80], edi
call fcn.005e2040
mov ecx, eax
call fcn.00541b80
test eax, eax
je 0x497b30
mov ecx, ebp
call fcn.0053e670
lea ecx, [esp + 0x570]
push ecx
lea edx, [esp + 0x570]
push edx
mov ecx, ebp
mov dword [esp + 0x570], eax
call fcn.0053e660
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x5c]
sub edx, dword [esp + 0x54]
mov dword [esp + 0x574], eax
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x58]
mov dword [esp + 0x578], ecx
mov ecx, ebp
mov dword [esp + 0x57c], edx
mov dword [esp + 0x580], eax
call fcn.0053e690
mov ecx, ebp
mov dword [esp + 0x564], eax
call fcn.0053e680
mov ecx, esi
mov dword [esp + 0x584], eax
call fcn.0053e670
lea ecx, [esp + 0x598]
push ecx
lea edx, [esp + 0x598]
push edx
mov ecx, esi
mov dword [esp + 0x598], eax
call fcn.0053e660
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
sub edx, eax
mov dword [esp + 0x59c], eax
mov eax, dword [esp + 0x60]
sub eax, ecx
mov dword [esp + 0x5a0], ecx
mov ecx, esi
mov dword [esp + 0x5a4], edx
mov dword [esp + 0x5a8], eax
call fcn.0053e690
mov ecx, esi
mov dword [esp + 0x58c], eax
call fcn.0053e680
lea ecx, [esp + 0x564]
push ecx
mov dword [esp + 0x5b0], eax
mov dword [esp + 0x5c0], 1
mov dword [esp + 0x5b4], 0xff
call fcn.00558170
add esp, 4
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0xfc]
mov ecx, dword [esp + 0x1b8]
mov esi, 2
test eax, eax
jne 0x497b72
add dword [esp + 0x20], ecx
test ebx, 0xff00
je 0x497b61
add dword [esp + 0x18], ecx
add dword [esp + 0x14], esi
jmp 0x497b8c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x18], eax
inc dword [esp + 0x14]
jmp 0x497b8c
add dword [esp + 0x18], eax
test ebx, 0xff00
je 0x497b84
add dword [esp + 0x14], esi
jmp 0x497b88
inc dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp dword [esp + 0x1d0], 0
jne 0x497ba0
cmp dword [esp + 0x1d4], 0
je 0x497ba8
sub dword [esp + 0x18], esi
sub dword [esp + 0x20], esi
mov edx, dword [esp + 0x14]
cmp byte [edx], 0
mov edi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x50]
jne 0x497860
lea ecx, [esp + 0x42c]
mov byte [esp + 0x6f4], 1
call fcn.0053eea0
lea ecx, [esp + 0x230]
mov byte [esp + 0x6f4], 0
call fcn.0054e160
jmp case.default.0x497018
lea edx, [esp + 0x540]
push edx
mov ecx, ebx
call fcn.004d0380
mov ecx, dword [edi + 0x17c]
push eax
lea eax, [esp + 0x544]
push eax
call fcn.004ced00
mov esi, eax
test esi, esi
je 0x497c8c
mov ecx, esi
call fcn.004cdc80
cmp eax, 4
jne 0x497c8c
lea ecx, [esp + 0xf4]
push ecx
mov ecx, esi
call fcn.004d10a0
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x70], edx
fld dword [esp + 0x70]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
call fcn.005af050
fld dword [esp + 0x74]
mov dword [esp + 0x1c], eax
call fcn.005af050
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x34]
push edx
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.004d2010
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add dword [esp + 0x30], eax
add dword [esp + 0x34], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov ecx, ebx
call fcn.004d07b0
test eax, eax
je 0x497cd1
lea eax, [esp + 0x564]
push eax
mov ecx, ebx
call fcn.004d0840
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x40]
push edx
push eax
lea eax, [esp + 0x570]
push eax
mov ecx, edi
call fcn.0044c020
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
push ecx
push edx
mov ecx, ebx
call fcn.004d0060
mov ecx, ebp
call fcn.005e2040
mov dword [esp + 0xa8], eax
mov ecx, ebx
test eax, eax
je 0x497df5
call fcn.004d03d0
cmp eax, 0xffffffff
je 0x497e31
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0xbc]
push ecx
mov ecx, ebx
call fcn.004d0c80
lea edx, [esp + 0xc4]
push edx
lea eax, [esp + 0xc4]
push eax
mov ecx, ebx
call fcn.004d0240
mov ecx, ebx
call fcn.004d0290
fstp dword [esp + 0xc8]
lea ecx, [esp + 0xd0]
push ecx
lea edx, [esp + 0xd0]
push edx
mov ecx, ebx
call fcn.004d02f0
fild dword [esp + 0x1c]
mov ecx, ebx
fadd dword [esp + 0xb8]
fstp dword [esp + 0xb8]
fild dword [esp + 0x14]
fadd dword [esp + 0xbc]
fstp dword [esp + 0xbc]
call fcn.004d04c0
mov ecx, ebx
mov dword [esp + 0xd4], eax
call fcn.004d0650
mov ecx, ebx
mov dword [esp + 0xd8], eax
call fcn.004d0a80
mov ebp, dword [edi]
mov dword [esp + 0xdc], eax
lea eax, [esp + 0x40]
push eax
push 0
lea ecx, [esp + 0xb0]
push ecx
mov ecx, ebx
add ebp, 0x10
call fcn.004d03d0
mov edx, dword [edi + 0x198]
push eax
mov eax, dword [edi + 4]
push 0x10d
push edx
mov edx, dword [ebp]
push eax
mov ecx, edi
call edx
mov ebp, dword [edi]
lea eax, [esp + 0x40]
push eax
push 0
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebx
add ebp, 0x10
call fcn.004d03d0
mov edx, dword [edi + 0x198]
push eax
push 0x116
push edx
mov edx, dword [ebp]
jmp 0x497e29
call fcn.004d03d0
cmp eax, 0xffffffff
je 0x497e31
mov esi, dword [edi]
lea eax, [esp + 0x40]
push eax
push 0
lea ecx, [esp + 0xb0]
push ecx
mov ecx, ebx
add esi, 0x10
call fcn.004d03d0
mov edx, dword [edi + 0x198]
push eax
push 0x10e
push edx
mov edx, dword [esi]
mov eax, dword [edi + 4]
push eax
mov ecx, edi
call edx
mov ecx, ebx
call fcn.004cdc10
mov ecx, ebx
call fcn.004cdc00
push 1
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x70]
push ecx
mov ecx, ebx
call fcn.004d0430
test eax, eax
je 0x497e80
mov ecx, dword [esp + 0x44]
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x6c]
push 0
push ecx
mov ecx, dword [edi + 0x198]
push eax
mov eax, dword [edi + 4]
push 0x120
push ecx
push eax
mov ecx, edi
call edx
mov ecx, dword [esp + 0x6ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6d4]
xor ecx, esp
call fcn.005ae766
add esp, 0x6e4
ret 8