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

Disassembly:
push 0xffffffffffffffff
push 0x49c780
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4be0a0]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x94]
mov eax, dword [ebp + 0x4ac]
lea ecx, [eax + 0x658]
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
call edx
mov edi, dword [ebp + 0x4ec]
cmp edi, dword [ebp + 0x4f0]
jbe 0x40cc77
call fcn.0047db04
mov esi, dword [ebp + 0x4e0]
lea ecx, [ecx]
mov ebx, dword [ebp + 0x4f0]
cmp dword [ebp + 0x4ec], ebx
jbe 0x40cc93
call fcn.0047db04
mov eax, dword [ebp + 0x4e0]
test esi, esi
je 0x40cca1
cmp esi, eax
je 0x40cca6
call fcn.0047db04
cmp edi, ebx
je 0x40cd4d
test esi, esi
jne 0x40cd39
call fcn.0047db04
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40ccc7
call fcn.0047db04
test esi, esi
jne 0x40cd3d
call fcn.0047db04
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40ccdc
call fcn.0047db04
test esi, esi
jne 0x40cd41
call fcn.0047db04
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40ccf1
call fcn.0047db04
test esi, esi
jne 0x40cd45
call fcn.0047db04
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40cd06
call fcn.0047db04
mov eax, dword [edi]
lea ecx, [eax + 0x24]
push ecx
lea ecx, [eax + 0x78]
push ecx
lea edx, [eax + 8]
lea ecx, [eax + 0x5c]
push ebp
call fcn.0040c400
test esi, esi
jne 0x40cd49
call fcn.0047db04
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40cd31
call fcn.0047db04
add edi, 4
jmp 0x40cc80
mov eax, dword [esi]
jmp 0x40ccbd
mov eax, dword [esi]
jmp 0x40ccd2
mov eax, dword [esi]
jmp 0x40cce7
mov eax, dword [esi]
jmp 0x40ccfc
mov eax, dword [esi]
jmp 0x40cd27
push 0xb
xor edx, edx
mov edi, 7
push str.btnAddTools
lea esi, [esp + 0x70]
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], 0
mov word [esp + 0x74], dx
call fcn.004028e0
xor ebx, ebx
mov dword [esp + 0x8c], ebx
push 6
xor eax, eax
push 0x4a22f8
lea esi, [esp + 0x54]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], ax
call fcn.004028e0
mov byte [esp + 0x8c], 1
push 0xd
xor ecx, ecx
push 0x4a2308
lea esi, [esp + 0x38]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], cx
call fcn.004028e0
mov byte [esp + 0x8c], 2
push 0xb
xor edx, edx
push str.addtool.png
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], dx
call fcn.004028e0
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x34]
push ecx
push ebp
lea edx, [esp + 0x58]
mov ecx, esi
mov byte [esp + 0x98], 3
call fcn.0040c400
mov esi, 8
cmp dword [esp + 0x2c], esi
jb 0x40ce27
mov edx, dword [esp + 0x18]
push edx
call fcn.0047d710
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], ax
cmp dword [esp + 0x48], esi
jb 0x40ce49
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0047d710
add esp, 4
xor edx, edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], dx
cmp dword [esp + 0x64], esi
jb 0x40ce6b
mov eax, dword [esp + 0x50]
push eax
call fcn.0047d710
add esp, 4
xor ecx, ecx
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], cx
cmp dword [esp + 0x80], esi
jb 0x40ce90
mov edx, dword [esp + 0x6c]
push edx
call fcn.0047d710
add esp, 4
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 4