Function at 0x10043b40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x11d22010]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test eax, eax
jne 0x10043b78
xor edx, edx
mov ecx, 0x1046ab50
call fcn.1003f920
mov dword [0x11d22010], eax
test eax, eax
je 0x10043de2
cmp dword [0x11d22014], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x10043ba1
push 0x1046acd0
push eax
call esi
mov dword [0x11d22014], eax
test eax, eax
je 0x10043de2
mov eax, dword [0x11d22010]
cmp dword [0x11d22018], 0
jne 0x10043bc4
push 0x1046acf0
push eax
call esi
mov dword [0x11d22018], eax
test eax, eax
je 0x10043de2
mov eax, dword [0x11d22010]
cmp dword [0x11d22020], 0
jne 0x10043be7
push 0x1046ab70
push eax
call esi
mov dword [0x11d22020], eax
test eax, eax
je 0x10043de2
mov eax, dword [0x11d22010]
cmp dword [0x11d2201c], 0
jne 0x10043c0a
push 0x1046ad10
push eax
call esi
mov dword [0x11d2201c], eax
test eax, eax
je 0x10043de2
mov eax, dword [0x11d22010]
cmp dword [0x11d22028], 0
jne 0x10043c28
push 0x1046aba0
push eax
call esi
mov dword [0x11d22028], eax
test eax, eax
je 0x10043de2
push 6
push 0
push 0
push 0
call dword [0x11d22014]
mov esi, eax
mov dword [ebp + 8], esi
cmp esi, 0xffffffff
je 0x10043de2
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push ebx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
push 0
mov dword [ebx + 0x18], 0
push esi
mov dword [ebx], 0x1c
call dword [0x11d22018]
test eax, eax
je 0x10043ddb
mov eax, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x14], eax
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 8], eax
nop word [eax + eax]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
xor edi, edi
push edi
push edi
push edi
push 2
push ebx
push esi
call dword [0x11d22020]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10043d8f
lea esi, [eax + 4]
push esi
push 0x40
call dword [ebp - 0x14]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x10043d8c
push 0
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 2
push ebx
push esi
call dword [0x11d22020]
test eax, eax
je 0x10043d8f
mov eax, edi
cmp word [eax], 0
je 0x10043d7b
nop
mov esi, dword [0x10f236e4]
cmp word [esi], 0
je 0x10043d45
nop dword [eax]
push esi
push edi
call fcn.10424ff2
add esp, 8
test eax, eax
jne 0x10043d3f
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10043d23
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], cx
jne 0x10043d10
jmp 0x10043d45
cmp word [esi], 0
jne 0x10043d75
mov ecx, edi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10043d50
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
cmp word [edi], ax
jne 0x10043d00
push dword [ebp - 4]
call dword [ebp - 8]
mov esi, dword [ebp + 8]
jmp 0x10043d93
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 8]
cmp word [edi], 0
jne 0x10043ded
push dword [ebp - 4]
call dword [ebp - 8]
mov esi, dword [ebp + 8]
jmp 0x10043d93
mov esi, dword [ebp + 8]
push edi
call dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov dword [ebx + 4], 0
inc eax
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push ebx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
push eax
mov dword [ebx + 0x18], 0
push esi
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x1c
call dword [0x11d22018]
test eax, eax
jne 0x10043ca0
push esi
call dword [0x11d22028]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push eax
call dword [ebp - 8]
mov eax, dword [ebp - 0x18]
pop edi
mov dword [eax], esi
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4