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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d02d0
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4fa36c]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x4fa36c]
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 + 0x438]
xor edx, edx
cmp eax, edx
je 0x45df71
cmp byte [eax + 0x1d8], dl
je 0x45df71
mov byte [ebp + 0xc], 1
cmp dword [ebx + 0x380], edx
je 0x45edb6
mov ecx, dword [ebx + 0x44c]
mov esi, ecx
and esi, 4
je 0x45dfcf
cmp dword [ebx + 0x198], edx
jne 0x45dfaa
cmp dword [ebx + 0x1a0], edx
jne 0x45dfaa
cmp dword [ebx + 0x19c], edx
jne 0x45dfaa
cmp dword [ebx + 0x1a4], edx
je 0x45dfcf
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 0x45e0c7
test cl, 2
je 0x45e019
cmp dword [ebx + 0x188], edx
jne 0x45dff4
cmp dword [ebx + 0x190], edx
jne 0x45dff4
cmp dword [ebx + 0x18c], edx
jne 0x45dff4
cmp dword [ebx + 0x194], edx
je 0x45e019
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 0x45e0c7
test cl, 0x10
je 0x45e060
cmp dword [ebx + 0x178], edx
jne 0x45e03e
cmp dword [ebx + 0x180], edx
jne 0x45e03e
cmp dword [ebx + 0x17c], edx
jne 0x45e03e
cmp dword [ebx + 0x184], edx
je 0x45e060
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 0x45e0c7
test cl, 8
je 0x45e0a7
cmp dword [ebx + 0x168], edx
jne 0x45e085
cmp dword [ebx + 0x170], edx
jne 0x45e085
cmp dword [ebx + 0x16c], edx
jne 0x45e085
cmp dword [ebx + 0x174], edx
je 0x45e0a7
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 0x45e0c7
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 0x45e0d9
mov eax, dword [ebx + 0x14c]
cmp eax, edx
jne 0x45e10c
test cl, 2
je 0x45e0e8
mov eax, dword [ebx + 0x148]
cmp eax, edx
jne 0x45e10c
test cl, 0x10
je 0x45e0f7
mov eax, dword [ebx + 0x144]
cmp eax, edx
jne 0x45e10c
test cl, 8
je 0x45e106
mov eax, dword [ebx + 0x140]
cmp eax, edx
jne 0x45e10c
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 0x45e149
cmp dword [ebx + 0xa8], edx
je 0x45e149
push 0xffffffffffffffff
push edx
lea ecx, [ebx + 0x94]
push ecx
jmp 0x45e18b
test cl, 2
je 0x45e15e
cmp dword [ebx + 0x8c], edx
je 0x45e15e
push 0xffffffffffffffff
push edx
lea edx, [ebx + 0x78]
jmp 0x45e18a
test cl, 0x10
je 0x45e171
cmp dword [ebx + 0x70], edx
je 0x45e171
push 0xffffffffffffffff
push edx
lea eax, [ebx + 0x5c]
push eax
jmp 0x45e18b
test cl, 8
je 0x45e184
cmp dword [ebx + 0x54], edx
je 0x45e184
push 0xffffffffffffffff
push edx
lea ecx, [ebx + 0x40]
push ecx
jmp 0x45e18b
push 0xffffffffffffffff
push edx
lea edx, [ebx + 0x24]
push edx
lea eax, [esp + 0x88]
call fcn.004017c0
mov eax, dword [ebx + 0x44c]
test al, 4
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
je 0x45e1d1
mov cl, byte [ebx + 0x31e]
cmp cl, 0x64
jne 0x45e1be
cmp byte [ebx + 0x31f], cl
je 0x45e1d1
mov al, byte [ebx + 0x31f]
mov byte [esp + 0x13], cl
mov byte [esp + 0x12], al
jmp 0x45e261
test al, 2
je 0x45e1f4
mov cl, byte [ebx + 0x31c]
cmp cl, 0x64
jne 0x45e1e8
cmp byte [ebx + 0x31d], cl
je 0x45e1f4
mov byte [esp + 0x13], cl
mov cl, byte [ebx + 0x31d]
jmp 0x45e25d
test al, 0x10
je 0x45e21b
mov cl, byte [ebx + 0x31a]
cmp cl, 0x64
jne 0x45e20b
cmp byte [ebx + 0x31b], cl
je 0x45e21b
mov dl, byte [ebx + 0x31b]
mov byte [esp + 0x13], cl
mov byte [esp + 0x12], dl
jmp 0x45e261
test al, 8
je 0x45e241
mov al, byte [ebx + 0x318]
cmp al, 0x64
jne 0x45e231
cmp byte [ebx + 0x319], al
je 0x45e241
mov byte [esp + 0x13], al
mov al, byte [ebx + 0x319]
mov byte [esp + 0x12], al
jmp 0x45e261
mov al, byte [ebx + 0x316]
cmp al, 0x64
jne 0x45e253
cmp byte [ebx + 0x317], al
je 0x45e261
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.00471540
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 0x45e828
test esi, esi
je 0x45e828
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 0x45e2e8
lea ecx, [esp + 0x80]
cmp dword [ebx + 0x384], eax
jb 0x45e2f8
mov eax, dword [ebx + 0x370]
jmp 0x45e2fe
lea eax, [ebx + 0x370]
mov edx, dword [ebx + 0x438]
mov edi, dword [esp + 0x14]
push 0x800
push eax
push edx
lea esi, [esp + 0x30]
call fcn.004746d0
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 0x45e548
cmp byte [ebx + 0x314], 0
mov esi, dword [ebx + 0x310]
mov byte [ebx + 0x498], 1
mov dword [esp + 0x18], esi
je 0x45e361
or esi, 1
mov dword [esp + 0x18], esi
mov eax, dword [ebx + 0x438]
test eax, eax
je 0x45e37a
push ebx
add eax, 4
push eax
mov ecx, 0x2003
call fcn.00472b10
mov al, byte [esp + 0x13]
test al, al
jne 0x45e3bf
cmp byte [esp + 0x12], al
je 0x45e3c9
mov eax, dword [ebx + 0x438]
cmp byte [eax + 0x32], 0
jne 0x45e39f
cmp byte [ebp + 0xc], 0
mov byte [esp + 0x1c], 0
je 0x45e3a4
mov byte [esp + 0x1c], 1
mov eax, 8
cmp dword [esp + 0x94], eax
jb 0x45e42d
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x34], ecx
jmp 0x45e438
cmp al, 0x64
jne 0x45e388
cmp byte [esp + 0x12], al
jne 0x45e388
mov edx, dword [ebx]
mov eax, dword [edx + 0x218]
mov ecx, ebx
call eax
test al, al
je 0x45e4d6
mov ecx, dword [esp + 0x80]
mov eax, 8
cmp dword [esp + 0x94], eax
jae 0x45e3f9
lea ecx, [esp + 0x80]
cmp dword [ebx + 0x384], eax
jb 0x45e409
mov eax, dword [ebx + 0x370]
jmp 0x45e40f
lea eax, [ebx + 0x370]
push esi
push ecx
mov ecx, dword [ebx + 0x438]
push eax
push ecx
mov edx, edi
push edx
lea ecx, [esp + 0x50]
call fcn.00479da0
add esp, 0x14
jmp 0x45e4d6
lea edx, [esp + 0x80]
mov dword [esp + 0x34], edx
cmp dword [ebx + 0x384], eax
jb 0x45e44c
mov eax, dword [ebx + 0x370]
mov dword [esp + 0x38], eax
jmp 0x45e456
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 + 0x438]
push eax
push ecx
call fcn.00474e00
add esp, 0x24
mov edi, dword [ebx + 0x438]
cmp byte [edi + 0x32], 0
jne 0x45e4ec
cmp byte [ebp + 0xc], 0
jne 0x45e4ec
xor cl, cl
jmp 0x45e4ee
mov cl, 1
mov edx, dword [esp + 0x80]
mov eax, 8
cmp dword [esp + 0x94], eax
jae 0x45e50a
lea edx, [esp + 0x80]
cmp dword [ebx + 0x384], eax
jb 0x45e51a
mov eax, dword [ebx + 0x370]
jmp 0x45e520
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.00474e00
add esp, 0x24
jmp 0x45ed1e
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 + 0x498], 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.00470180
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 0x45e7eb
mov ecx, edx
lea ebx, [ebx]
cmp eax, dword [esp + 0x3c]
mov edx, 8
jle 0x45e7cf
mov al, byte [esp + 0x13]
test al, al
jne 0x45e636
cmp byte [esp + 0x12], al
je 0x45e640
mov eax, dword [ebx + 0x438]
cmp byte [eax + 0x32], 0
jne 0x45e614
cmp byte [ebp + 0xc], 0
mov byte [esp + 0x38], 0
je 0x45e619
mov byte [esp + 0x38], 1
cmp dword [esp + 0x94], edx
jb 0x45e6ac
mov eax, dword [esp + 0x80]
mov dword [esp + 0x34], eax
jmp 0x45e6b7
cmp al, 0x64
jne 0x45e5fd
cmp byte [esp + 0x12], al
jne 0x45e5fd
mov eax, dword [ebx]
mov edx, dword [eax + 0x218]
mov ecx, ebx
call edx
test al, al
mov edi, 8
je 0x45e759
cmp dword [esp + 0x94], edi
mov ecx, dword [esp + 0x80]
jae 0x45e670
lea ecx, [esp + 0x80]
cmp dword [ebx + 0x384], edi
jb 0x45e680
mov eax, dword [ebx + 0x370]
jmp 0x45e686
lea eax, [ebx + 0x370]
mov edx, dword [ebx + 0x310]
push edx
push ecx
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [ebx + 0x438]
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.00479da0
add esp, 0x14
jmp 0x45e759
lea ecx, [esp + 0x80]
mov dword [esp + 0x34], ecx
cmp dword [ebx + 0x384], edx
jb 0x45e6cb
mov edx, dword [ebx + 0x370]
mov dword [esp + 0x18], edx
jmp 0x45e6d5
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 + 0x438]
lea ecx, [esp + 0x64]
push ecx
push eax
push edx
call fcn.00474e00
add esp, 0x24
mov edi, 8
mov esi, dword [ebx + 0x438]
cmp byte [esi + 0x32], 0
jne 0x45e76f
cmp byte [ebp + 0xc], 0
jne 0x45e76f
xor cl, cl
jmp 0x45e771
mov cl, 1
cmp dword [esp + 0x94], edi
mov edx, dword [esp + 0x80]
jae 0x45e788
lea edx, [esp + 0x80]
cmp dword [ebx + 0x384], edi
jb 0x45e798
mov eax, dword [ebx + 0x370]
jmp 0x45e79e
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.00474e00
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 0x45e5e0
mov byte [esp + 0xa8], 0
mov eax, dword [esp + 0x70]
test eax, eax
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x45e814
mov esi, dword [esp + 0x78]
test esi, esi
je 0x45e814
push esi
push eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push esi
call edi
mov eax, dword [esp + 0x74]
test eax, eax
je 0x45ed1e
push eax
call edi
jmp 0x45ed1e
cmp byte [ebx + 0x20], 0
je 0x45e89f
mov esi, dword [ebx + 0x438]
cmp byte [esi + 0x32], 0
jne 0x45e844
cmp byte [ebp + 0xc], 0
jne 0x45e844
xor cl, cl
jmp 0x45e846
mov cl, 1
mov edx, dword [esp + 0x80]
mov eax, 8
cmp dword [esp + 0x94], eax
jae 0x45e862
lea edx, [esp + 0x80]
cmp dword [ebx + 0x384], eax
jb 0x45e872
mov eax, dword [ebx + 0x370]
jmp 0x45e878
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.00478720
add esp, 0x20
jmp 0x45ed1e
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 0x45e8c7
lea ecx, [esp + 0x80]
cmp dword [ebx + 0x384], eax
jb 0x45e8d7
mov eax, dword [ebx + 0x370]
jmp 0x45e8dd
lea eax, [ebx + 0x370]
mov edx, dword [ebx + 0x438]
mov edi, dword [esp + 0x14]
push 0x800
push eax
push edx
lea esi, [esp + 0x58]
call fcn.004746d0
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 + 0x498], 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.004017c0
mov byte [esp + 0xa8], 2
cmp byte [ebx + 0x314], 0
je 0x45ea1d
mov edx, dword [esp + 0x5c]
cmp edx, dword [esp + 0x18]
jle 0x45ea12
jmp 0x45e980
mov eax, dword [esp + 0x74]
test eax, eax
jbe 0x45ea16
mov ecx, dword [esp + 0x64]
mov edi, 8
cmp dword [esp + 0x78], edi
jae 0x45e99f
lea ecx, [esp + 0x64]
add eax, 0xffffffff
push eax
push ecx
lea esi, [esp + 0x68]
call fcn.004018b0
push 0xffffffffffffffff
push 0
push eax
mov eax, esi
call fcn.004017c0
cmp dword [ebx + 0x3c], edi
jb 0x45e9c3
mov ecx, dword [ebx + 0x28]
jmp 0x45e9c6
lea ecx, [ebx + 0x28]
cmp dword [esp + 0x78], edi
mov eax, dword [esp + 0x64]
jae 0x45e9d4
lea eax, [esp + 0x64]
mov edi, dword [esp + 0x14]
push 0x800
push eax
mov eax, dword [ebx + 0x438]
push eax
lea esi, [esp + 0x58]
call fcn.004746d0
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 0x45e980
mov eax, dword [esp + 0x74]
or dword [esp + 0x1c], 1
jmp 0x45ea21
mov eax, dword [esp + 0x74]
cmp byte [ebx + 0x315], 0
je 0x45ead0
sub esi, edi
cmp esi, dword [esp + 0x18]
jle 0x45ead0
jmp 0x45ea44
mov eax, dword [esp + 0x74]
test eax, eax
jbe 0x45ead0
mov ecx, dword [esp + 0x64]
mov edi, 8
cmp dword [esp + 0x78], edi
jae 0x45ea5f
lea ecx, [esp + 0x64]
add eax, 0xffffffff
push eax
push ecx
lea esi, [esp + 0x68]
call fcn.004018b0
push 0xffffffffffffffff
push 0
push eax
mov eax, esi
call fcn.004017c0
cmp dword [ebx + 0x3c], edi
jb 0x45ea83
mov ecx, dword [ebx + 0x28]
jmp 0x45ea86
lea ecx, [ebx + 0x28]
cmp dword [esp + 0x78], edi
mov eax, dword [esp + 0x64]
jae 0x45ea94
lea eax, [esp + 0x64]
mov edx, dword [ebx + 0x438]
mov edi, dword [esp + 0x14]
push 0x800
push eax
push edx
lea esi, [esp + 0x58]
call fcn.004746d0
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 0x45ea40
mov ecx, dword [esp + 0x80]
mov eax, 8
cmp dword [esp + 0x94], eax
jae 0x45eaec
lea ecx, [esp + 0x80]
cmp dword [ebx + 0x384], eax
jb 0x45eafc
mov eax, dword [ebx + 0x370]
jmp 0x45eb02
lea eax, [ebx + 0x370]
mov edx, dword [ebx + 0x438]
mov edi, dword [esp + 0x14]
push 0x800
push eax
push edx
lea esi, [esp + 0x58]
call fcn.004746d0
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 0x45eb48
mov eax, dword [ebx + 0x49c]
add dword [esp + 0x3c], eax
sub dword [esp + 0x44], eax
mov al, byte [esp + 0x13]
test al, al
jne 0x45eb8d
cmp byte [esp + 0x12], al
je 0x45eb97
mov eax, dword [ebx + 0x438]
cmp byte [eax + 0x32], 0
jne 0x45eb6d
cmp byte [ebp + 0xc], 0
mov byte [esp + 0x38], 0
je 0x45eb72
mov byte [esp + 0x38], 1
mov eax, 8
cmp dword [esp + 0x94], eax
jb 0x45ebf9
mov edx, dword [esp + 0x80]
mov dword [esp + 0x34], edx
jmp 0x45ec04
cmp al, 0x64
jne 0x45eb56
cmp byte [esp + 0x12], al
jne 0x45eb56
mov edx, dword [ebx]
mov eax, dword [edx + 0x218]
mov ecx, ebx
call eax
test al, al
mov edi, 8
je 0x45ec9f
cmp dword [esp + 0x94], edi
mov ecx, dword [esp + 0x80]
jae 0x45ebc7
lea ecx, [esp + 0x80]
cmp dword [esp + 0x78], edi
mov eax, dword [esp + 0x64]
jae 0x45ebd5
lea eax, [esp + 0x64]
mov edx, dword [esp + 0x1c]
push edx
push ecx
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [ebx + 0x438]
push eax
push ecx
lea ecx, [esp + 0x50]
call fcn.00479da0
add esp, 0x14
jmp 0x45ec9f
lea ecx, [esp + 0x80]
mov dword [esp + 0x34], ecx
cmp dword [esp + 0x78], eax
jb 0x45ec14
mov edx, dword [esp + 0x64]
mov dword [esp + 0x18], edx
jmp 0x45ec1c
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 + 0x438]
push eax
push ecx
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], esi
call fcn.00474e00
add esp, 0x24
mov edi, 8
mov esi, dword [ebx + 0x438]
cmp byte [esi + 0x32], 0
jne 0x45ecb5
cmp byte [ebp + 0xc], 0
jne 0x45ecb5
xor cl, cl
jmp 0x45ecb7
mov cl, 1
cmp dword [esp + 0x94], edi
mov edx, dword [esp + 0x80]
jae 0x45ecce
lea edx, [esp + 0x80]
cmp dword [esp + 0x78], edi
mov eax, dword [esp + 0x64]
jae 0x45ecdc
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.00474e00
add esp, 0x24
mov byte [esp + 0xa8], 0
cmp dword [esp + 0x78], edi
jb 0x45ed1e
mov edx, dword [esp + 0x64]
push edx
call fcn.004a93cc
add esp, 4
mov eax, dword [ebx]
mov edx, dword [eax + 0x164]
mov ecx, ebx
call edx
test al, al
je 0x45ed9c
cmp byte [ebx + 0x498], 0
je 0x45ed89
xor eax, eax
push eax
push 0x4d8004
lea esi, [esp + 0x68]
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], eax
mov word [esp + 0x6c], ax
call fcn.004018b0
mov byte [esp + 0xa8], 3
mov eax, dword [ebx]
mov edx, dword [eax + 0x14c]
mov ecx, esi
push ecx
mov ecx, ebx
call edx
cmp dword [esp + 0x78], 8
jb 0x45ed9c
mov eax, dword [esp + 0x64]
push eax
call fcn.004a93cc
add esp, 4
jmp 0x45ed9c
mov edx, dword [ebx]
lea eax, [ebx + 0x36c]
push eax
mov eax, dword [edx + 0x14c]
mov ecx, ebx
call eax
cmp dword [esp + 0x94], 8
jb 0x45edb6
mov ecx, dword [esp + 0x80]
push ecx
call fcn.004a93cc
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.004a9ce9
mov esp, ebp
pop ebp
ret 8