Function at 0x441010
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5de6c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.004b5c24
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x441056
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], esi
call fcn.004b5c24
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x441082
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
call fcn.004b5c24
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4410af
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
push str.ledtool.dll
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0x24], esi
call fcn.0043fe60
mov esi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44124c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Ledtool_Create
push edi
call esi
push str.Ledtool_Destroy
push edi
mov dword [ebp - 0x28], eax
call esi
push str.Ledtool_SetLanguage
push edi
mov dword [ebp - 0x20], eax
call esi
push str.Ledtool_SetDataPath
push edi
mov dword [ebp - 0x2c], eax
call esi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x30], eax
jne 0x441135
push str.Ledtool_SearchCard
push edi
call esi
mov dword [ebp + 8], eax
mov dword [ebp - 0x18], 0
jmp 0x441147
push str.Ledtool_SearchCardEx
push edi
mov dword [ebp + 8], 0
call esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x441220
cmp dword [ebp - 0x20], 0
je 0x441220
cmp dword [ebp + 8], 0
jne 0x44116c
cmp dword [ebp - 0x18], 0
je 0x441220
call eax
mov esi, eax
test esi, esi
je 0x441240
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x44118a
movzx edx, word [ebx + 0x100]
push edx
push esi
call eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x44119b
mov ecx, dword [0x66dac4]
push ecx
push esi
call eax
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4411dc
call fcn.00443a30
test eax, eax
jne 0x4411c2
push eax
push esi
call ebx
push esi
call dword [ebp - 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x1c]
jmp 0x441288
mov eax, dword [eax + 0x20]
push eax
push esi
call ebx
push esi
call dword [ebp - 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x1c]
jmp 0x441288
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x441210
call fcn.00443a30
test eax, eax
jne 0x441206
push eax
push esi
call ebx
push esi
mov dword [ebp - 0x24], eax
call dword [ebp - 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x1c]
jmp 0x441288
mov eax, dword [eax + 0x20]
push eax
push esi
call ebx
mov dword [ebp - 0x24], eax
push esi
call dword [ebp - 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x1c]
jmp 0x441288
lea edx, [ebp - 0x14]
push edx
push 0xcf
mov ecx, ebx
call fcn.00440520
lea eax, [ebp - 0x10]
push eax
push 0x185
mov ecx, ebx
call fcn.00440520
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x1c]
jmp 0x441288
lea ecx, [ebp - 0x14]
push ecx
push 0xcf
mov ecx, ebx
call fcn.00440520
lea edx, [ebp - 0x10]
push edx
push 0x184
mov ecx, ebx
call fcn.00440520
push 2
push 0x5f6b18
lea ecx, [ebp - 0x10]
call fcn.00408d70
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00408d70
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], 0
je 0x4412b5
call fcn.004ba943
test eax, eax
je 0x4412a5
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x4412a7
xor eax, eax
mov ecx, dword [ebp - 0x14]
push 0x30
push ecx
push edi
mov ecx, eax
call fcn.004ad7c0
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4412d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4412f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44131b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4