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

Disassembly:
push 0x6c
mov eax, 0x55dad5
call fcn.0055b22a
mov dword [ebp - 0x34], edx
mov esi, ecx
mov ebx, dword [ebp + 8]
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x2c], edx
cmp dword [ebx + 4], edx
jbe 0x40d54a
mov eax, dword [ebx]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x38], eax
lea edi, [eax + 0x78]
cmp dword [edi + 4], edx
jne 0x40d3c0
cmp dword [edi + 8], edx
jne 0x40d3c0
cmp byte [edi + 2], 0
jne 0x40d3a7
cmp byte [edi], 0
jne 0x40d3c0
cmp byte [edi + 1], 0
jne 0x40d3c0
cmp dword [edi + 0x1c], edx
jne 0x40d3c0
cmp dword [edi + 0x28], edx
jne 0x40d3c0
cmp dword [edi + 0xc], edx
jl 0x40d537
cmp dword [esi + 4], edx
jne 0x40d3d7
push ecx
mov ecx, esi
call fcn.0041c8b1
mov ecx, esi
call fcn.0041c889
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x2c], 0
je 0x40d3ef
add eax, 0x18
mov ecx, esi
push eax
call fcn.0041c8f8
mov ecx, esi
call fcn.0041c889
mov edx, edi
mov ecx, esi
call fcn.0040d1be
xor edx, edx
cmp dword [edi + 0xc], edx
jl 0x40d534
push 0x56967c
push 0x49
pop edx
lea ecx, [ebp - 0x54]
call fcn.0041563c
pop ecx
and dword [ebp - 4], 0
mov ecx, esi
push eax
call fcn.0041c8f8
mov ecx, esi
call fcn.0041c889
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x54]
call fcn.0054b686
pop ecx
mov ecx, dword [edi + 0xc]
mov edi, dword [ebp - 0x38]
cmp dword [edi + 0x3c], ecx
jne 0x40d473
mov edx, 0xbcb
lea ecx, [ebp - 0x48]
call fcn.0040db2e
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.0041c8f8
mov ecx, esi
call fcn.0041c889
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x48]
call fcn.0054b686
jmp 0x40d531
test ecx, ecx
jns 0x40d47e
mov edx, 0x569654
jmp 0x40d48a
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 8]
mov eax, dword [eax + ecx*4]
mov edx, dword [eax + 0x10]
lea ecx, [ebp - 0x1c]
call fcn.0040d2ff
push eax
mov edx, 0xbc9
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0040d97c
pop ecx
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0041c8f8
mov ecx, esi
call fcn.0041c889
push dword [ebp - 0x28]
call fcn.0054b686
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x1c]
call fcn.0054b686
pop ecx
pop ecx
mov ecx, dword [edi + 0x3c]
test ecx, ecx
jns 0x40d4df
mov edx, 0x569654
jmp 0x40d4eb
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 8]
mov eax, dword [eax + ecx*4]
mov edx, dword [eax + 0x10]
lea ecx, [ebp - 0x78]
call fcn.0040d2ff
push eax
mov edx, 0xbca
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x6c]
call fcn.0040d97c
pop ecx
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.0041c8f8
mov ecx, esi
call fcn.0041c889
push dword [ebp - 0x6c]
call fcn.0054b686
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x78]
call fcn.0054b686
pop ecx
xor edx, edx
pop ecx
mov ecx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x2c]
inc edi
mov dword [ebp - 0x2c], edi
cmp edi, dword [ebx + 4]
jb 0x40d387
mov eax, dword [ebp - 0x3c]
push 0xa
pop edi
cmp dword [ebx + 0x3c], edx
jge 0x40d55a
test eax, eax
je 0x40d701
push ecx
mov ecx, esi
call fcn.0041c8b1
mov ecx, esi
call fcn.0041c889
cmp dword [ebx + 4], 0
je 0x40d581
lea eax, [ebx + 0x24]
mov ecx, esi
push eax
call fcn.0041c8f8
mov ecx, esi
call fcn.0041c889
cmp dword [ebx + 0x3c], 0
jge 0x40d5b8
mov edx, dword [ebp - 0x3c]
cmp edx, 1
je 0x40d5b8
lea ecx, [ebp - 0x60]
call fcn.00415217
push eax
mov ecx, esi
mov dword [ebp - 4], 0xd
call fcn.0041c8f8
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x60]
call fcn.0054b686
pop ecx
jmp 0x40d6f0
xor eax, eax
mov dword [ebp - 0x2c], 0xbbd
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041c570
mov dword [ebp - 4], 6
cmp byte [ebx + 0x21], 0
je 0x40d5e5
mov dword [ebp - 0x2c], 0xbbe
jmp 0x40d621
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
js 0x40d621
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], 0xbc9
mov eax, dword [eax + 8]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x60]
mov edx, dword [eax + 0x10]
call fcn.0040d2ff
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.0041c6b4
mov byte [ebp - 4], 6
push dword [ebp - 0x60]
call fcn.0054b686
pop ecx
mov edx, dword [ebp - 0x2c]
lea edi, [ebp - 0x1c]
xor eax, eax
lea ecx, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040d97c
pop ecx
mov edi, 0x569658
mov byte [ebp - 4], 8
push edi
lea ecx, [ebp - 0x54]
call fcn.0041c594
push 0x569690
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 9
call fcn.0041c594
push 0xa
pop eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0041caf4
push dword [ebp - 0x48]
call fcn.0054b686
mov byte [ebp - 4], 8
push dword [ebp - 0x54]
call fcn.0054b686
pop ecx
pop ecx
push edi
lea ecx, [ebp - 0x48]
call fcn.0041c594
push 0x569698
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xb
call fcn.0041c594
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041caf4
push dword [ebp - 0x54]
call fcn.0054b686
mov byte [ebp - 4], 8
push dword [ebp - 0x48]
call fcn.0054b686
pop ecx
pop ecx
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.0041c8f8
push dword [ebp - 0x1c]
call fcn.0054b686
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x28]
call fcn.0054b686
pop ecx
pop ecx
push 0xa
pop edi
mov ecx, esi
call fcn.0041c889
lea edx, [ebx + 0x30]
mov ecx, esi
call fcn.0040d1be
mov eax, dword [esi + 4]
test eax, eax
je 0x40d71b
mov ecx, dword [esi]
cmp word [ecx + eax*2 - 2], di
jne 0x40d71b
dec eax
xor edx, edx
mov dword [esi + 4], eax
mov word [ecx + eax*2], dx
call fcn.0055b1d9
ret