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

Disassembly:
push ebx
push esi
mov esi, ecx
test esi, esi
je 0x42180f
mov eax, dword [esi + 0x20]
mov dword [esi + 0x18], 0
test eax, eax
jne 0x4214e9
mov dword [esi + 0x28], eax
mov eax, 0x426630
mov dword [esi + 0x20], 0x426630
cmp dword [esi + 0x24], 0
jne 0x4214f6
mov dword [esi + 0x24], 0x426640
cmp edx, 0xffffffff
mov ebx, 6
cmovne ebx, edx
cmp ebx, 9
ja 0x42180f
push edi
push 0x16b8
cmp eax, 0x426630
jne 0x421523
push 1
call fcn.0044cd72
add esp, 8
jmp 0x42152d
mov ecx, dword [esi + 0x28]
mov edx, 1
call eax
mov edi, eax
test edi, edi
je 0x421804
mov dword [esi + 0x1c], edi
mov dword [edi], esi
mov dword [edi + 0x18], 0
mov dword [edi + 0x28], 0xf
mov dword [edi + 0x24], 0x8000
mov dword [edi + 0x2c], 0x7fff
mov dword [edi + 0x48], 0xf
mov dword [edi + 0x44], 0x8000
mov dword [edi + 0x4c], 0x7fff
mov dword [edi + 0x50], 5
mov eax, dword [esi + 0x20]
push 2
cmp eax, 0x426630
jne 0x42158f
push 0x8000
call fcn.0044cd72
add esp, 8
jmp 0x421599
mov ecx, dword [esi + 0x28]
mov edx, 0x8000
call eax
mov edx, dword [edi + 0x24]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x20]
push 2
cmp eax, 0x426630
jne 0x4215b6
push edx
call fcn.0044cd72
add esp, 8
jmp 0x4215bb
mov ecx, dword [esi + 0x28]
call eax
mov edx, dword [edi + 0x44]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x20]
push 2
cmp eax, 0x426630
jne 0x4215d8
push edx
call fcn.0044cd72
add esp, 8
jmp 0x4215dd
mov ecx, dword [esi + 0x28]
call eax
mov dword [edi + 0x3c], eax
mov dword [edi + 0x1694], 0x4000
mov eax, dword [esi + 0x20]
push 4
cmp eax, 0x426630
jne 0x421605
push 0x4000
call fcn.0044cd72
add esp, 8
jmp 0x42160f
mov ecx, dword [esi + 0x28]
mov edx, 0x4000
call eax
cmp dword [edi + 0x30], 0
mov ecx, eax
mov edx, dword [edi + 0x1694]
mov dword [edi + 8], ecx
lea eax, [edx*4]
mov dword [edi + 0xc], eax
je 0x4217f5
cmp dword [edi + 0x38], 0
je 0x4217f5
cmp dword [edi + 0x3c], 0
je 0x4217f5
test ecx, ecx
je 0x4217f5
mov eax, edx
mov dword [edi + 0x7c], ebx
shr eax, 1
mov dword [edi + 0x80], 0
mov byte [edi + 0x1d], 8
lea eax, [ecx + eax*2]
mov dword [edi + 0x169c], eax
lea eax, [ecx + edx*2]
add eax, edx
mov dword [edi + 0x1690], eax
mov edi, dword [esi + 0x1c]
test edi, edi
je 0x4217ea
cmp dword [esi + 0x20], 0
je 0x4217ea
cmp dword [esi + 0x24], 0
je 0x4217ea
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x4216cb
mov dword [edi + 0x18], 0
xor ecx, ecx
test ecx, ecx
mov edx, 0x71
mov eax, 0x2a
mov ecx, edi
cmovne eax, edx
mov dword [edi + 4], eax
lea eax, [edi + 0x8c]
mov dword [esi + 0x30], 1
mov dword [edi + 0xb10], eax
lea eax, [edi + 0x980]
mov dword [edi + 0xb1c], eax
lea eax, [edi + 0xa74]
mov dword [edi + 0xb28], eax
xor eax, eax
mov dword [edi + 0x20], 0
mov dword [edi + 0xb18], 0x4a4340
mov dword [edi + 0xb24], 0x4a4318
mov dword [edi + 0xb30], 0x4a432c
mov word [edi + 0x16b0], ax
mov dword [edi + 0x16b4], eax
mov dword [edi + 0x16ac], 8
call fcn.00424c70
mov eax, dword [edi + 0x24]
xor edx, edx
mov ecx, dword [edi + 0x44]
add eax, eax
mov dword [edi + 0x34], eax
mov eax, dword [edi + 0x3c]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [edi + 0x44]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [edi + 0x3c]
call sym.GUIToGo.exe_memset
mov eax, dword [edi + 0x7c]
add esp, 0xc
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x491372]
mov dword [edi + 0x78], eax
movzx eax, word [ecx*4 + 0x491370]
mov dword [edi + 0x84], eax
movzx eax, word [ecx*4 + 0x491374]
mov dword [edi + 0x88], eax
movzx eax, word [ecx*4 + 0x491376]
mov dword [edi + 0x74], eax
xor eax, eax
mov dword [edi + 0x64], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 2
mov dword [edi + 0x58], 2
mov dword [edi + 0x60], 0
mov dword [edi + 0x40], 0
pop edi
pop esi
pop ebx
ret 0x18
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
ret 0x18
mov eax, dword [str.insufficient_memory]
mov ecx, esi
mov dword [esi + 0x18], eax
call fcn.00421a60
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
ret 0x18
pop esi
mov eax, 0xfffffffe
pop ebx
ret 0x18