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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x511f90
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x448]
xor edx, edx
cmp eax, edx
je 0x494421
cmp byte [eax + 0x1d8], dl
je 0x494421
mov byte [ebp + 0xc], 1
cmp dword [ebx + 0x380], edx
je 0x495266
mov ecx, dword [ebx + 0x45c]
mov esi, ecx
and esi, 4
je 0x49447f
cmp dword [ebx + 0x198], edx
jne 0x49445a
cmp dword [ebx + 0x1a0], edx
jne 0x49445a
cmp dword [ebx + 0x19c], edx
jne 0x49445a
cmp dword [ebx + 0x1a4], edx
je 0x49447f
mov eax, dword [ebx + 0x198]
mov edi, dword [ebx + 0x19c]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x1a0]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x1a4]
jmp 0x494577
test cl, 2
je 0x4944c9
cmp dword [ebx + 0x188], edx
jne 0x4944a4
cmp dword [ebx + 0x190], edx
jne 0x4944a4
cmp dword [ebx + 0x18c], edx
jne 0x4944a4
cmp dword [ebx + 0x194], edx
je 0x4944c9
mov eax, dword [ebx + 0x188]
mov edi, dword [ebx + 0x18c]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x190]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x194]
jmp 0x494577
test cl, 0x10
je 0x494510
cmp dword [ebx + 0x178], edx
jne 0x4944ee
cmp dword [ebx + 0x180], edx
jne 0x4944ee
cmp dword [ebx + 0x17c], edx
jne 0x4944ee
cmp dword [ebx + 0x184], edx
je 0x494510
mov eax, dword [ebx + 0x178]
mov edi, dword [ebx + 0x17c]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x180]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x184]
jmp 0x494577
test cl, 8
je 0x494557
cmp dword [ebx + 0x168], edx
jne 0x494535
cmp dword [ebx + 0x170], edx
jne 0x494535
cmp dword [ebx + 0x16c], edx
jne 0x494535
cmp dword [ebx + 0x174], edx
je 0x494557
mov eax, dword [ebx + 0x168]
mov edi, dword [ebx + 0x16c]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x170]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x174]
jmp 0x494577
mov eax, dword [ebx + 0x158]
mov edi, dword [ebx + 0x15c]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x160]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x164]
cmp esi, edx
mov dword [esp + 0x30], eax
je 0x494589
mov eax, dword [ebx + 0x14c]
cmp eax, edx
jne 0x4945bc
test cl, 2
je 0x494598
mov eax, dword [ebx + 0x148]
cmp eax, edx
jne 0x4945bc
test cl, 0x10
je 0x4945a7
mov eax, dword [ebx + 0x144]
cmp eax, edx
jne 0x4945bc
test cl, 8
je 0x4945b6
mov eax, dword [ebx + 0x140]
cmp eax, edx
jne 0x4945bc
mov eax, dword [ebx + 0x13c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], edx
mov word [esp + 0x80], dx
cmp esi, edx
mov dword [esp + 0xa8], edx
je 0x4945f9
cmp dword [ebx + 0xa8], edx
je 0x4945f9
push 0xffffffffffffffff
push edx
lea ecx, [ebx + 0x94]
push ecx
jmp 0x49463b
test cl, 2
je 0x49460e
cmp dword [ebx + 0x8c], edx
je 0x49460e
push 0xffffffffffffffff
push edx
lea edx, [ebx + 0x78]
jmp 0x49463a
test cl, 0x10
je 0x494621
cmp dword [ebx + 0x70], edx
je 0x494621
push 0xffffffffffffffff
push edx
lea eax, [ebx + 0x5c]
push eax
jmp 0x49463b
test cl, 8
je 0x494634
cmp dword [ebx + 0x54], edx
je 0x494634
push 0xffffffffffffffff
push edx
lea ecx, [ebx + 0x40]
push ecx
jmp 0x49463b
push 0xffffffffffffffff
push edx
lea edx, [ebx + 0x24]
push edx
lea eax, [esp + 0x88]
call fcn.00401610
mov eax, dword [ebx + 0x45c]
test al, 4
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
je 0x494681
mov cl, byte [ebx + 0x31e]
cmp cl, 0x64
jne 0x49466e
cmp byte [ebx + 0x31f], cl
je 0x494681
mov al, byte [ebx + 0x31f]
mov byte [esp + 0x13], cl
mov byte [esp + 0x12], al
jmp 0x494711
test al, 2
je 0x4946a4
mov cl, byte [ebx + 0x31c]
cmp cl, 0x64
jne 0x494698
cmp byte [ebx + 0x31d], cl
je 0x4946a4
mov byte [esp + 0x13], cl
mov cl, byte [ebx + 0x31d]
jmp 0x49470d
test al, 0x10
je 0x4946cb
mov cl, byte [ebx + 0x31a]
cmp cl, 0x64
jne 0x4946bb
cmp byte [ebx + 0x31b], cl
je 0x4946cb
mov dl, byte [ebx + 0x31b]
mov byte [esp + 0x13], cl
mov byte [esp + 0x12], dl
jmp 0x494711
test al, 8
je 0x4946f1
mov al, byte [ebx + 0x318]
cmp al, 0x64
jne 0x4946e1
cmp byte [ebx + 0x319], al
je 0x4946f1
mov byte [esp + 0x13], al
mov al, byte [ebx + 0x319]
mov byte [esp + 0x12], al
jmp 0x494711
mov al, byte [ebx + 0x316]
cmp al, 0x64
jne 0x494703
cmp byte [ebx + 0x317], al
je 0x494711
mov cl, byte [ebx + 0x317]
mov byte [esp + 0x13], al
mov byte [esp + 0x12], cl
mov ecx, dword [ebx + 0x3f4]
mov eax, dword [ebx + 0x3f0]
mov edx, dword [ebx + 0x3f8]
mov esi, dword [ebx + 0x3fc]
add eax, dword [esp + 0x24]
sub edx, dword [esp + 0x2c]
sub esi, dword [esp + 0x30]
add ecx, edi
mov dword [esp + 0x40], ecx
lea ecx, [ebx + 4]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], esi
call fcn.00498700
mov edx, dword [ebx]
mov esi, eax
mov eax, dword [edx + 0x14]
push 2
mov ecx, ebx
mov dword [esp + 0x38], esi
call eax
test al, al
je 0x494cd8
test esi, esi
je 0x494cd8
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x38], eax
mov eax, 8
cmp dword [esp + 0x94], eax
jae 0x494798
lea ecx, [esp + 0x80]
cmp dword [ebx + 0x384], eax
jb 0x4947a8
mov eax, dword [ebx + 0x370]
jmp 0x4947ae
lea eax, [ebx + 0x370]
mov edx, dword [ebx + 0x448]
mov edi, dword [esp + 0x14]
push 0x800
push eax
push edx
lea esi, [esp + 0x30]
call fcn.0049cb40
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esp + 0x5c], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x64], eax
mov eax, edx
sub eax, ecx
add esp, 0xc
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
jg 0x4949f8
cmp byte [ebx + 0x314], 0
mov esi, dword [ebx + 0x310]
mov byte [ebx + 0x4a8], 1
mov dword [esp + 0x18], esi
je 0x494811
or esi, 1
mov dword [esp + 0x18], esi
mov eax, dword [ebx + 0x448]
test eax, eax
je 0x49482a
push ebx
add eax, 4
push eax
mov ecx, 0x2003
call fcn.00499cd0
mov al, byte [esp + 0x13]
test al, al
jne 0x49486f
cmp byte [esp + 0x12], al
je 0x494879
mov eax, dword [ebx + 0x448]
cmp byte [eax + 0x32], 0
jne 0x49484f
cmp byte [ebp + 0xc], 0
mov byte [esp + 0x1c], 0
je 0x494854
mov byte [esp + 0x1c], 1
mov eax, 8
cmp dword [esp + 0x94], eax
jb 0x4948dd
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x34], ecx
jmp 0x4948e8
cmp al, 0x64
jne 0x494838
cmp byte [esp + 0x12], al
jne 0x494838
mov edx, dword [ebx]
mov eax, dword [edx + 0x21c]
mov ecx, ebx
call eax
test al, al
je 0x494986
mov ecx, dword [esp + 0x80]
mov eax, 8
cmp dword [esp + 0x94], eax
jae 0x4948a9
lea ecx, [esp + 0x80]
cmp dword [ebx + 0x384], eax
jb 0x4948b9
mov eax, dword [ebx + 0x370]
jmp 0x4948bf
lea eax, [ebx + 0x370]
push esi
push ecx
mov ecx, dword [ebx + 0x448]
push eax
push ecx
mov edx, edi
push edx
lea ecx, [esp + 0x50]
call fcn.004a26a0
add esp, 0x14
jmp 0x494986
lea edx, [esp + 0x80]
mov dword [esp + 0x34], edx
cmp dword [ebx + 0x384], eax
jb 0x4948fc
mov eax, dword [ebx + 0x370]
mov dword [esp + 0x38], eax
jmp 0x494906
lea ecx, [ebx + 0x370]
mov dword [esp + 0x38], ecx
movsx eax, byte [esp + 0x12]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
movsx ecx, byte [esp + 0x13]
lea esi, [eax + edx]
mov edx, dword [esp + 0x44]
add eax, edi
mov edi, dword [esp + 0x3c]
add edx, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
add ecx, edi
mov dword [esp + 0x28], ecx
mov ecx, dword [ebx + 0x320]
push ecx
mov ecx, eax
and eax, 0x80000000
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x20]
push esi
and ecx, 0xffffff
sub eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x48]
add eax, 0xffffff
push eax
push edx
lea eax, [esp + 0x3c]
push eax
mov eax, dword [ebx + 0x448]
push eax
push ecx
call fcn.0049d270
add esp, 0x24
mov edi, dword [ebx + 0x448]
cmp byte [edi + 0x32], 0
jne 0x49499c
cmp byte [ebp + 0xc], 0
jne 0x49499c
xor cl, cl
jmp 0x49499e
mov cl, 1
mov edx, dword [esp + 0x80]
mov eax, 8
cmp dword [esp + 0x94], eax
jae 0x4949ba
lea edx, [esp + 0x80]
cmp dword [ebx + 0x384], eax
jb 0x4949ca
mov eax, dword [ebx + 0x370]
jmp 0x4949d0
lea eax, [ebx + 0x370]
push ecx
mov ecx, dword [ebx + 0x320]
push ecx
mov ecx, dword [esp + 0x1c]
push esi
push edx
mov edx, dword [esp + 0x30]
push edx
push eax
lea eax, [esp + 0x54]
push eax
push edi
push ecx
call fcn.0049d270
add esp, 0x24
jmp 0x4951ce
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
xor eax, eax
mov byte [ebx + 0x4a8], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov byte [esp + 0xa8], 1
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
mov edi, dword [esp + 0x24]
lea esi, [esp + 0x70]
call fcn.004c8500
mov esi, dword [esp + 0x34]
sub esi, dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
lea eax, [esi + edx]
add esp, 0x10
cmp esi, dword [esp + 0x44]
mov edi, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], edi
jge 0x494c9b
mov ecx, edx
lea ebx, [ebx]
cmp eax, dword [esp + 0x3c]
mov edx, 8
jle 0x494c7f
mov al, byte [esp + 0x13]
test al, al
jne 0x494ae6
cmp byte [esp + 0x12], al
je 0x494af0
mov eax, dword [ebx + 0x448]
cmp byte [eax + 0x32], 0
jne 0x494ac4
cmp byte [ebp + 0xc], 0
mov byte [esp + 0x38], 0
je 0x494ac9
mov byte [esp + 0x38], 1
cmp dword [esp + 0x94], edx
jb 0x494b5c
mov eax, dword [esp + 0x80]
mov dword [esp + 0x34], eax
jmp 0x494b67
cmp al, 0x64
jne 0x494aad
cmp byte [esp + 0x12], al
jne 0x494aad
mov eax, dword [ebx]
mov edx, dword [eax + 0x21c]
mov ecx, ebx
call edx
test al, al
mov edi, 8
je 0x494c09
cmp dword [esp + 0x94], edi
mov ecx, dword [esp + 0x80]
jae 0x494b20
lea ecx, [esp + 0x80]
cmp dword [ebx + 0x384], edi
jb 0x494b30
mov eax, dword [ebx + 0x370]
jmp 0x494b36
lea eax, [ebx + 0x370]
mov edx, dword [ebx + 0x310]
push edx
push ecx
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [ebx + 0x448]
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.004a26a0
add esp, 0x14
jmp 0x494c09
lea ecx, [esp + 0x80]
mov dword [esp + 0x34], ecx
cmp dword [ebx + 0x384], edx
jb 0x494b7b
mov edx, dword [ebx + 0x370]
mov dword [esp + 0x18], edx
jmp 0x494b85
lea eax, [ebx + 0x370]
mov dword [esp + 0x18], eax
movsx eax, byte [esp + 0x12]
mov ecx, dword [esp + 0x30]
lea edx, [eax + ecx]
movsx ecx, byte [esp + 0x13]
add edi, ecx
add ecx, esi
mov dword [esp + 0x5c], edi
mov edi, dword [esp + 0x28]
add eax, edi
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x58], edx
mov edx, dword [ebx + 0x320]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x310]
push eax
mov eax, dword [esp + 0x2c]
mov edx, eax
and edx, 0xffffff
push ecx
and eax, 0x80000000
not edx
add edx, eax
mov eax, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [ebx + 0x448]
lea ecx, [esp + 0x64]
push ecx
push eax
push edx
call fcn.0049d270
add esp, 0x24
mov edi, 8
mov esi, dword [ebx + 0x448]
cmp byte [esi + 0x32], 0
jne 0x494c1f
cmp byte [ebp + 0xc], 0
jne 0x494c1f
xor cl, cl
jmp 0x494c21
mov cl, 1
cmp dword [esp + 0x94], edi
mov edx, dword [esp + 0x80]
jae 0x494c38
lea edx, [esp + 0x80]
cmp dword [ebx + 0x384], edi
jb 0x494c48
mov eax, dword [ebx + 0x370]
jmp 0x494c4e
lea eax, [ebx + 0x370]
push ecx
mov ecx, dword [ebx + 0x320]
push ecx
mov ecx, dword [ebx + 0x310]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x30]
push edx
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push ecx
call fcn.0049d270
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
add esp, 0x24
lea eax, [ecx + 0xa]
add esi, eax
cmp esi, dword [esp + 0x44]
lea eax, [esi + ecx]
mov edi, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], edi
jl 0x494a90
mov byte [esp + 0xa8], 0
mov eax, dword [esp + 0x70]
test eax, eax
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x494cc4
mov esi, dword [esp + 0x78]
test esi, esi
je 0x494cc4
push esi
push eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push esi
call edi
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4951ce
push eax
call edi
jmp 0x4951ce
cmp byte [ebx + 0x20], 0
je 0x494d4f
mov esi, dword [ebx + 0x448]
cmp byte [esi + 0x32], 0
jne 0x494cf4
cmp byte [ebp + 0xc], 0
jne 0x494cf4
xor cl, cl
jmp 0x494cf6
mov cl, 1
mov edx, dword [esp + 0x80]
mov eax, 8
cmp dword [esp + 0x94], eax
jae 0x494d12
lea edx, [esp + 0x80]
cmp dword [ebx + 0x384], eax
jb 0x494d22
mov eax, dword [ebx + 0x370]
jmp 0x494d28
lea eax, [ebx + 0x370]
push ecx
mov ecx, dword [ebx + 0x310]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x2c]
push edx
push eax
lea eax, [esp + 0x50]
push eax
push esi
push ecx
call fcn.004a1010
add esp, 0x20
jmp 0x4951ce
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x18], eax
mov eax, 8
cmp dword [esp + 0x94], eax
jae 0x494d77
lea ecx, [esp + 0x80]
cmp dword [ebx + 0x384], eax
jb 0x494d87
mov eax, dword [ebx + 0x370]
jmp 0x494d8d
lea eax, [ebx + 0x370]
mov edx, dword [ebx + 0x448]
mov edi, dword [esp + 0x14]
push 0x800
push eax
push edx
lea esi, [esp + 0x58]
call fcn.0049cb40
mov ecx, dword [eax + 4]
mov esi, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov edi, dword [eax]
add esp, 0xc
mov eax, esi
sub eax, edi
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x5c], eax
setle al
mov byte [ebx + 0x4a8], al
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [esp + 0x7c], eax
mov word [esp + 0x6c], ax
lea eax, [ebx + 0x36c]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 0x310]
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x84], 7
call fcn.00401610
mov byte [esp + 0xa8], 2
cmp byte [ebx + 0x314], 0
je 0x494ecd
mov edx, dword [esp + 0x5c]
cmp edx, dword [esp + 0x18]
jle 0x494ec2
jmp 0x494e30
mov eax, dword [esp + 0x74]
test eax, eax
jbe 0x494ec6
mov ecx, dword [esp + 0x64]
mov edi, 8
cmp dword [esp + 0x78], edi
jae 0x494e4f
lea ecx, [esp + 0x64]
add eax, 0xffffffff
push eax
push ecx
lea esi, [esp + 0x68]
call fcn.00407330
push 0xffffffffffffffff
push 0
push eax
mov eax, esi
call fcn.00401610
cmp dword [ebx + 0x3c], edi
jb 0x494e73
mov ecx, dword [ebx + 0x28]
jmp 0x494e76
lea ecx, [ebx + 0x28]
cmp dword [esp + 0x78], edi
mov eax, dword [esp + 0x64]
jae 0x494e84
lea eax, [esp + 0x64]
mov edi, dword [esp + 0x14]
push 0x800
push eax
mov eax, dword [ebx + 0x448]
push eax
lea esi, [esp + 0x58]
call fcn.0049cb40
mov ecx, dword [eax + 4]
mov esi, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov edi, dword [eax]
mov eax, esi
sub eax, edi
add esp, 0xc
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edx
jg 0x494e30
mov eax, dword [esp + 0x74]
or dword [esp + 0x1c], 1
jmp 0x494ed1
mov eax, dword [esp + 0x74]
cmp byte [ebx + 0x315], 0
je 0x494f80
sub esi, edi
cmp esi, dword [esp + 0x18]
jle 0x494f80
jmp 0x494ef4
mov eax, dword [esp + 0x74]
test eax, eax
jbe 0x494f80
mov ecx, dword [esp + 0x64]
mov edi, 8
cmp dword [esp + 0x78], edi
jae 0x494f0f
lea ecx, [esp + 0x64]
add eax, 0xffffffff
push eax
push ecx
lea esi, [esp + 0x68]
call fcn.00407330
push 0xffffffffffffffff
push 0
push eax
mov eax, esi
call fcn.00401610
cmp dword [ebx + 0x3c], edi
jb 0x494f33
mov ecx, dword [ebx + 0x28]
jmp 0x494f36
lea ecx, [ebx + 0x28]
cmp dword [esp + 0x78], edi
mov eax, dword [esp + 0x64]
jae 0x494f44
lea eax, [esp + 0x64]
mov edx, dword [ebx + 0x448]
mov edi, dword [esp + 0x14]
push 0x800
push eax
push edx
lea esi, [esp + 0x58]
call fcn.0049cb40
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
sub ecx, edx
add esp, 0xc
cmp ecx, dword [esp + 0x18]
mov dword [esp + 0x30], eax
jg 0x494ef0
mov ecx, dword [esp + 0x80]
mov eax, 8
cmp dword [esp + 0x94], eax
jae 0x494f9c
lea ecx, [esp + 0x80]
cmp dword [ebx + 0x384], eax
jb 0x494fac
mov eax, dword [ebx + 0x370]
jmp 0x494fb2
lea eax, [ebx + 0x370]
mov edx, dword [ebx + 0x448]
mov edi, dword [esp + 0x14]
push 0x800
push eax
push edx
lea esi, [esp + 0x58]
call fcn.0049cb40
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
sub ecx, edx
add esp, 0xc
cmp ecx, dword [esp + 0x18]
mov dword [esp + 0x30], eax
jle 0x494ff8
mov eax, dword [ebx + 0x4ac]
add dword [esp + 0x3c], eax
sub dword [esp + 0x44], eax
mov al, byte [esp + 0x13]
test al, al
jne 0x49503d
cmp byte [esp + 0x12], al
je 0x495047
mov eax, dword [ebx + 0x448]
cmp byte [eax + 0x32], 0
jne 0x49501d
cmp byte [ebp + 0xc], 0
mov byte [esp + 0x38], 0
je 0x495022
mov byte [esp + 0x38], 1
mov eax, 8
cmp dword [esp + 0x94], eax
jb 0x4950a9
mov edx, dword [esp + 0x80]
mov dword [esp + 0x34], edx
jmp 0x4950b4
cmp al, 0x64
jne 0x495006
cmp byte [esp + 0x12], al
jne 0x495006
mov edx, dword [ebx]
mov eax, dword [edx + 0x21c]
mov ecx, ebx
call eax
test al, al
mov edi, 8
je 0x49514f
cmp dword [esp + 0x94], edi
mov ecx, dword [esp + 0x80]
jae 0x495077
lea ecx, [esp + 0x80]
cmp dword [esp + 0x78], edi
mov eax, dword [esp + 0x64]
jae 0x495085
lea eax, [esp + 0x64]
mov edx, dword [esp + 0x1c]
push edx
push ecx
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [ebx + 0x448]
push eax
push ecx
lea ecx, [esp + 0x50]
call fcn.004a26a0
add esp, 0x14
jmp 0x49514f
lea ecx, [esp + 0x80]
mov dword [esp + 0x34], ecx
cmp dword [esp + 0x78], eax
jb 0x4950c4
mov edx, dword [esp + 0x64]
mov dword [esp + 0x18], edx
jmp 0x4950cc
lea eax, [esp + 0x64]
mov dword [esp + 0x18], eax
movsx eax, byte [esp + 0x12]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
lea esi, [eax + ecx]
movsx ecx, byte [esp + 0x13]
lea edi, [ecx + edx]
mov edx, dword [esp + 0x40]
add eax, edx
mov edx, dword [esp + 0x3c]
add ecx, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x50], ecx
mov ecx, dword [ebx + 0x320]
push ecx
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x30]
mov ecx, eax
and ecx, 0xffffff
and eax, 0x80000000
not ecx
add ecx, eax
push ecx
mov ecx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x64]
push eax
mov eax, dword [ebx + 0x448]
push eax
push ecx
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], esi
call fcn.0049d270
add esp, 0x24
mov edi, 8
mov esi, dword [ebx + 0x448]
cmp byte [esi + 0x32], 0
jne 0x495165
cmp byte [ebp + 0xc], 0
jne 0x495165
xor cl, cl
jmp 0x495167
mov cl, 1
cmp dword [esp + 0x94], edi
mov edx, dword [esp + 0x80]
jae 0x49517e
lea edx, [esp + 0x80]
cmp dword [esp + 0x78], edi
mov eax, dword [esp + 0x64]
jae 0x49518c
lea eax, [esp + 0x64]
push ecx
mov ecx, dword [ebx + 0x320]
push ecx
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x30]
push edx
push eax
lea eax, [esp + 0x54]
push eax
push esi
push ecx
call fcn.0049d270
add esp, 0x24
mov byte [esp + 0xa8], 0
cmp dword [esp + 0x78], edi
jb 0x4951ce
mov edx, dword [esp + 0x64]
push edx
call fcn.004e7d7e
add esp, 4
mov eax, dword [ebx]
mov edx, dword [eax + 0x168]
mov ecx, ebx
call edx
test al, al
je 0x49524c
cmp byte [ebx + 0x4a8], 0
je 0x495239
xor eax, eax
push eax
push 0x51a1d4
lea esi, [esp + 0x68]
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], eax
mov word [esp + 0x6c], ax
call fcn.00407330
mov byte [esp + 0xa8], 3
mov eax, dword [ebx]
mov edx, dword [eax + 0x150]
mov ecx, esi
push ecx
mov ecx, ebx
call edx
cmp dword [esp + 0x78], 8
jb 0x49524c
mov eax, dword [esp + 0x64]
push eax
call fcn.004e7d7e
add esp, 4
jmp 0x49524c
mov edx, dword [ebx]
lea eax, [ebx + 0x36c]
push eax
mov eax, dword [edx + 0x150]
mov ecx, ebx
call eax
cmp dword [esp + 0x94], 8
jb 0x495266
mov ecx, dword [esp + 0x80]
push ecx
call fcn.004e7d7e
add esp, 4
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.004e7d6f
mov esp, ebp
pop ebp
ret 8