Function at 0x40a2b0bc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x40a3306c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x40a2b3ec
mov esi, 0x100
push edi
xor ebx, ebx
mov dword [ebp - 0x210], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40a2b0fb
xor eax, eax
jmp 0x40a2b313
push edi
push esi
lea eax, [ebp - 0x204]
push eax
call fcn.40a239ce
test eax, eax
jl 0x40a2b0f4
push 0x40a2b3c8
push esi
lea eax, [ebp - 0x204]
push eax
call fcn.40a23a08
test eax, eax
jl 0x40a2b0f4
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.40a2f780
test eax, eax
je 0x40a2b149
or eax, 0xffffffff
jmp 0x40a2b313
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
movzx edx, ax
push 0x2c
pop edi
test dx, dx
je 0x40a2b188
mov ecx, dword [0x40a33d2c]
xor eax, eax
inc eax
cmp ecx, eax
jl 0x40a2b188
mov esi, edi
cmp esi, 0x528
jae 0x40a2b188
cmp word [esi + 0x40a33400], dx
je 0x40a2b1de
inc eax
add esi, edi
cmp eax, ecx
jle 0x40a2b170
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
movzx eax, ax
xor esi, esi
mov dword [ebp - 0x208], eax
mov eax, dword [0x40a33d2c]
inc esi
cmp eax, esi
mov dword [ebp - 0x20c], esi
jl 0x40a2b2a9
mov ecx, edi
cmp ecx, 0x528
jae 0x40a2b2a9
cmp word [ecx + 0x40a33400], bx
je 0x40a2b202
inc esi
add ecx, edi
cmp esi, eax
mov dword [ebp - 0x20c], esi
jg 0x40a2b2a9
jmp 0x40a2b1b6
mov ecx, eax
imul ecx, ecx, 0x2c
lea ecx, [ecx + 0x40a33408]
inc dword [ecx]
cmp eax, dword [0x40a33d30]
jne 0x40a2b313
and dword [0x40a33d30], ebx
jmp 0x40a2b313
cmp esi, 0x1d
ja 0x40a2b2a9
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x40a2b2a9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40a2b3b4
push ebx
call edi
imul esi, esi, 0x2c
mov dword [esi + 0x40a3340c], eax
test eax, eax
je 0x40a2b2a9
push 0x40a2b3a0
push ebx
call edi
mov dword [esi + 0x40a33410], eax
test eax, eax
je 0x40a2b2a9
push 0x40a2b388
push ebx
call edi
mov dword [esi + 0x40a33414], eax
test eax, eax
je 0x40a2b2a9
push 0x40a2b370
push ebx
call edi
mov dword [esi + 0x40a33418], eax
test eax, eax
je 0x40a2b2a9
push 0x40a2b364
push ebx
call edi
mov dword [esi + 0x40a3341c], eax
test eax, eax
je 0x40a2b2a9
push 0x40a2b350
push ebx
call edi
mov dword [esi + 0x40a33420], eax
test eax, eax
je 0x40a2b2a9
push 0x40a2b338
push ebx
call edi
mov dword [esi + 0x40a33424], eax
test eax, eax
jne 0x40a2b2d3
cmp word [ebp - 0x208], 0
je 0x40a2b2bf
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_GlobalDeleteAtom]
test ebx, ebx
je 0x40a2b141
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40a2b141
push 0x40a2b324
push ebx
call edi
mov dword [esi + 0x40a33428], eax
mov ax, word [ebp - 0x208]
mov word [esi + 0x40a33400], ax
mov eax, dword [ebp - 0x20c]
cmp eax, dword [0x40a33d2c]
mov dword [esi + 0x40a33408], 1
mov dword [esi + 0x40a33404], ebx
jle 0x40a2b313
inc dword [0x40a33d2c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.40a214d8
leave
ret 4