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

Disassembly:
push 0xffffffffffffffff
push 0x48e5f0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [str.CombineRgn]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
push 0
push 0
push 0
push 7
lea ecx, [esp + 0x38]
call fcn.00443c95
mov eax, dword [ebp + 0x294]
lea ecx, [eax + 0x3e0]
call fcn.0045ca4a
test eax, eax
je 0x406f63
push eax
push 0x49a8a0
push 0
mov edi, 0x28
call fcn.00420860
push 0
push 0
push 0
push 8
lea ecx, [esp + 0x38]
call fcn.00443c95
mov eax, dword [ebp + 0x294]
lea ecx, [eax + 0x3e0]
call fcn.0045ca4a
test eax, eax
je 0x406f9b
push eax
push 0x49a8a8
push 1
mov edi, 0x28
call fcn.00420860
push 0
push 0
push 0
push 0xa
lea ecx, [esp + 0x38]
call fcn.00443c95
mov eax, dword [ebp + 0x294]
lea ecx, [eax + 0x3e0]
call fcn.0045ca4a
test eax, eax
je 0x406fd3
push eax
push 0x49a8b0
push 2
mov edi, 0x5a
call fcn.00420860
push 0
push 0
push 0
push 0xa
lea ecx, [esp + 0x38]
call fcn.00443c95
mov eax, dword [ebp + 0x294]
lea ecx, [eax + 0x3e0]
call fcn.0045ca4a
test eax, eax
je 0x40700b
push eax
push 0x49a8b8
push 3
mov edi, 0x50
call fcn.00420860
push 0
push 0
push 0
push 0xa
lea ecx, [esp + 0x38]
call fcn.00443c95
mov eax, dword [ebp + 0x294]
lea ecx, [eax + 0x3e0]
call fcn.0045ca4a
test eax, eax
je 0x407043
push eax
push 0x49a8c0
push 4
mov edi, 0x82
call fcn.00420860
push 0
push 0
push 0
push 0xa
lea ecx, [esp + 0x38]
call fcn.00443c95
mov eax, dword [ebp + 0x294]
lea ecx, [eax + 0x3e0]
call fcn.0045ca4a
test eax, eax
je 0x40707b
push eax
push 0x49a8c8
push 5
mov edi, 0x50
call fcn.00420860
push 0
push 0
push 0
push 0xa
lea ecx, [esp + 0x38]
call fcn.00443c95
mov eax, dword [ebp + 0x294]
lea ecx, [eax + 0x3e0]
call fcn.0045ca4a
test eax, eax
je 0x4070b3
push eax
push 0x49a8d0
push 6
mov edi, 0x64
call fcn.00420860
mov eax, dword [ebp + 0x268]
add eax, 0x790
push eax
mov dword [esp + 0x1c], 0
call dword [0x490254]
mov eax, dword [ebp + 0x268]
mov ecx, dword [eax + 0x6d0]
mov edi, dword [ecx]
mov esi, dword [eax + 0x6bc]
add eax, 0x6b4
jmp 0x4070f0
mov eax, dword [ebp + 0x268]
mov ebx, dword [eax + 0x6d0]
add eax, 0x6b4
mov eax, dword [eax + 8]
test esi, esi
je 0x40710c
cmp esi, eax
je 0x407111
call fcn.0046f8fc
cmp edi, ebx
je 0x407349
test esi, esi
jne 0x407163
call fcn.0046f8fc
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x40712e
call fcn.0046f8fc
cmp dword [edi + 0x64], 0
je 0x40731a
test esi, esi
jne 0x407167
call fcn.0046f8fc
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x40714d
call fcn.0046f8fc
mov eax, dword [edi + 0x64]
cmp byte [eax + 0xf1], 0
je 0x40716b
mov ebx, 1
jmp 0x4071ed
mov eax, dword [esi]
jmp 0x407124
mov eax, dword [esi]
jmp 0x407143
test esi, esi
jne 0x407193
call fcn.0046f8fc
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x407180
call fcn.0046f8fc
mov ecx, dword [edi + 0x64]
cmp byte [ecx + 0xf2], 0
je 0x407197
mov ebx, 2
jmp 0x4071ed
mov eax, dword [esi]
jmp 0x407176
test esi, esi
jne 0x4071bf
call fcn.0046f8fc
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4071ac
call fcn.0046f8fc
mov edx, dword [edi + 0x64]
cmp byte [edx + 0xf0], 0
je 0x4071c3
mov ebx, 4
jmp 0x4071ed
mov eax, dword [esi]
jmp 0x4071a2
test esi, esi
jne 0x407272
call fcn.0046f8fc
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4071dc
call fcn.0046f8fc
mov eax, dword [edi + 0x64]
movzx ebx, byte [eax + 0xf3]
neg ebx
sbb ebx, ebx
and ebx, 3
test esi, esi
jne 0x407279
call fcn.0046f8fc
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x407206
call fcn.0046f8fc
mov ecx, dword [edi + 0x64]
mov dword [esp + 0x1c], ecx
test esi, esi
jne 0x407280
call fcn.0046f8fc
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x407222
call fcn.0046f8fc
mov ecx, dword [edi + 0x64]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
push eax
test esi, esi
jne 0x407284
call fcn.0046f8fc
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x407242
call fcn.0046f8fc
mov ecx, dword [edi + 0x64]
mov eax, dword [ecx + 0xc08]
push eax
test esi, esi
jne 0x407288
call fcn.0046f8fc
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x407261
call fcn.0046f8fc
mov eax, dword [edi + 0x64]
add eax, 0x64
cmp dword [eax + 0x18], 0x10
jb 0x40728c
mov ebp, dword [eax + 4]
jmp 0x40728f
mov eax, dword [esi]
jmp 0x4071d2
mov eax, dword [esi]
jmp 0x4071fc
mov eax, dword [esi]
jmp 0x407218
mov eax, dword [esi]
jmp 0x407238
mov eax, dword [esi]
jmp 0x407257
lea ebp, [eax + 4]
push ebx
test esi, esi
jne 0x40733a
call fcn.0046f8fc
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4072a9
call fcn.0046f8fc
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0xffffffffffffffff
push 0
lea ebx, [edi + 8]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push ebx
mov byte [ecx + 4], 0
call fcn.00418a10
mov dword [esp + 0x6c], 0
test esi, esi
jne 0x407341
call fcn.0046f8fc
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4072ee
call fcn.0046f8fc
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
call eax
mov ecx, dword [ebx + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x74]
push ecx
push edx
push eax
mov ecx, ebp
mov dword [esp + 0x78], 0xffffffff
call fcn.00406060
mov ebp, dword [esp + 0x4c]
inc dword [esp + 0x18]
test esi, esi
jne 0x407345
call fcn.0046f8fc
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x407333
call fcn.0046f8fc
mov edi, dword [edi]
jmp 0x4070f0
mov eax, dword [esi]
jmp 0x40729f
mov eax, dword [esi]
jmp 0x4072e4
mov eax, dword [esi]
jmp 0x407329
mov eax, dword [ebp + 0x268]
add eax, 0x790
push eax
call dword [0x490250]
mov edx, dword [0x4ad484]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ad484
call eax
add eax, 0x10
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], 1
mov ecx, dword [ebp + 0x294]
mov edx, dword [ecx + 0x38c]
mov eax, dword [edx + 0xc]
add ecx, 0x38c
call eax
push eax
push 0x49a88c
lea edi, [esp + 0x54]
call fcn.00416780
mov ecx, dword [ebp + 0x274]
mov edx, dword [ecx]
mov eax, dword [esp + 0x54]
mov edx, dword [edx + 0x2c]
add esp, 8
push eax
call edx
push 0
push 0
push 0
push 7
lea ecx, [esp + 0x38]
call fcn.00443c95
mov eax, dword [ebp + 0x298]
lea ecx, [eax + 0x3e0]
call fcn.0045ca4a
test eax, eax
je 0x4073ed
push eax
push 0x49a8a0
push 0
mov edi, 0x28
call fcn.00420860
push 0
push 0
push 0
push 8
lea ecx, [esp + 0x38]
call fcn.00443c95
mov eax, dword [ebp + 0x298]
lea ecx, [eax + 0x3e0]
call fcn.0045ca4a
test eax, eax
je 0x407425
push eax
push 0x49a8a8
push 1
mov edi, 0x28
call fcn.00420860
push 0
push 0
push 0
push 0xa
lea ecx, [esp + 0x38]
call fcn.00443c95
mov eax, dword [ebp + 0x298]
lea ecx, [eax + 0x3e0]
call fcn.0045ca4a
test eax, eax
je 0x40745d
push eax
push 0x49a8b0
push 2
mov edi, 0x78
call fcn.00420860
push 0
push 0
push 0
push 0xa
lea ecx, [esp + 0x38]
call fcn.00443c95
mov eax, dword [ebp + 0x298]
lea ecx, [eax + 0x3e0]
call fcn.0045ca4a
test eax, eax
je 0x407495
push eax
push 0x49a8b8
push 3
mov edi, 0x50
call fcn.00420860
push 0
push 0
push 0
push 0xa
lea ecx, [esp + 0x38]
call fcn.00443c95
mov eax, dword [ebp + 0x298]
lea ecx, [eax + 0x3e0]
call fcn.0045ca4a
test eax, eax
je 0x4074cd
push eax
push 0x49a8d0
push 4
mov edi, 0x64
call fcn.00420860
mov esi, dword [ebp + 0x268]
mov edi, dword [esi + 0x750]
add esi, 0x744
mov dword [esp + 0x18], 0
cmp edi, dword [esi + 0x10]
jbe 0x4074f1
call fcn.0046f8fc
mov ebx, dword [esi]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
jmp 0x407500
mov esi, dword [ebp + 0x268]
mov edi, dword [esi + 0x754]
add esi, 0x744
cmp dword [esi + 0xc], edi
jbe 0x40751c
call fcn.0046f8fc
mov esi, dword [esi]
test ebx, ebx
je 0x407526
cmp ebx, esi
je 0x40752b
call fcn.0046f8fc
cmp dword [esp + 0x20], edi
je 0x40768d
test ebx, ebx
jne 0x4075d7
call fcn.0046f8fc
xor eax, eax
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + 0x10]
jb 0x407552
call fcn.0046f8fc
mov edx, dword [esp + 0x20]
mov ebx, dword [ebp + 0x268]
push edx
lea eax, [esp + 0x2c]
add ebx, 0x6fc
push eax
call fcn.00414920
mov eax, dword [ebp + 0x268]
mov esi, dword [esp + 0x28]
mov ebx, dword [eax + 0x718]
add eax, 0x6fc
mov eax, dword [eax + 8]
test esi, esi
je 0x40758d
cmp esi, eax
je 0x407592
call fcn.0046f8fc
mov edi, dword [esp + 0x2c]
cmp edi, ebx
je 0x407653
test esi, esi
jne 0x4075de
call fcn.0046f8fc
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4075b3
call fcn.0046f8fc
mov ecx, dword [edi + 0x60]
push ecx
test esi, esi
jne 0x4075e2
call fcn.0046f8fc
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4075cc
call fcn.0046f8fc
cmp dword [edi + 0x40], 0x10
jb 0x4075e6
mov ebx, dword [edi + 0x2c]
jmp 0x4075e9
mov eax, dword [ebx]
jmp 0x407544
mov eax, dword [esi]
jmp 0x4075a9
mov eax, dword [esi]
jmp 0x4075c2
lea ebx, [edi + 0x2c]
test esi, esi
jne 0x40767e
call fcn.0046f8fc
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x407602
call fcn.0046f8fc
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push 0xffffffffffffffff
lea eax, [edi + 0xc]
push 0
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push eax
mov byte [ecx + 4], 0
call fcn.00418a10
test esi, esi
jne 0x407685
call fcn.0046f8fc
cmp edi, dword [esi + 0x14]
jne 0x40763d
call fcn.0046f8fc
mov edx, dword [edi + 8]
mov esi, dword [esp + 0x38]
push edx
push esi
push ebp
mov ecx, ebx
call fcn.004059d0
inc esi
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x407689
call fcn.0046f8fc
xor eax, eax
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + 0x10]
jb 0x407670
call fcn.0046f8fc
add dword [esp + 0x20], 4
mov ebx, dword [esp + 0x1c]
jmp 0x407500
mov eax, dword [esi]
jmp 0x4075f8
mov esi, dword [esi]
jmp 0x407633
mov eax, dword [eax]
jmp 0x407662
mov edx, dword [esp + 0x4c]
cmp dword [edx - 0xc], 0
mov esi, dword [edx - 0x10]
lea eax, [edx - 0x10]
je 0x4076ea
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x4076c4
cmp dword [edx - 8], 0
jge 0x4076b6
push 0x80070057
call fcn.00419270
xor eax, eax
mov dword [edx - 0xc], 0
mov word [edx], ax
jmp 0x4076ea
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4076da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x298]
mov edx, dword [eax + 0x38c]
lea ecx, [eax + 0x38c]
mov eax, dword [edx + 0xc]
call eax
push eax
push 0x49a5d4
lea edi, [esp + 0x54]
call fcn.00416780
mov ecx, dword [ebp + 0x278]
mov edx, dword [ecx]
mov esi, dword [esp + 0x54]
mov eax, dword [edx + 0x2c]
add esp, 8
push esi
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407749
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4