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

Disassembly:
push 0xffffffffffffffff
push 0x5c9809
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x54]
mov dword [esp + 0x24], esi
call fcn.00544b40
xor edi, edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x130], edi
call fcn.00558060
lea ecx, [esp + 0x38]
mov byte [esp + 0x130], 1
call fcn.00558060
mov al, byte [esp + 0x1b]
mov dword [esp + 0x40], edi
mov byte [esp + 0x3c], al
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x130], 2
call fcn.00558060
lea ecx, [esp + 0x50]
mov byte [esp + 0x130], 3
call fcn.00558060
mov eax, dword [esi + 0x1c]
lea ebp, [esi + 0x18]
push eax
mov byte [esp + 0x134], 4
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.004050b0
lea ecx, [esi + 0x24]
call fcn.00559480
lea ecx, [esi + 0x34]
call fcn.0055a260
cmp word [esp + 0x13c], di
push ecx
mov dword [esp + 0x14], edi
mov ecx, esp
jne 0x40d2b3
mov dword [esp + 0x18], esp
push 6
push 0x609c8c
jmp 0x40d2be
mov dword [esp + 0x18], esp
push 6
push 0x609c84
call fcn.00558100
mov ecx, dword [0x619a6c]
call fcn.00544c70
mov ebx, dword [esp + 0x138]
mov edi, dword [ebx + 4]
mov eax, dword [ebx + 8]
cmp edi, eax
je 0x40d301
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edi
call fcn.00558070
mov ecx, dword [0x619a6c]
call fcn.00544db0
mov eax, dword [ebx + 8]
add edi, 4
cmp edi, eax
jne 0x40d2df
mov ecx, dword [0x619a6c]
lea edx, [esp + 0x54]
push edx
call fcn.00545270
test al, al
je 0x40d7af
mov al, byte [esi + 0x14]
test al, al
je 0x40d3a5
mov edi, dword [ebx + 4]
mov eax, dword [ebx + 8]
xor esi, esi
cmp edi, eax
mov dword [esp + 0x10], esi
je 0x40d40c
push esi
lea ecx, [esp + 0x58]
call fcn.00545400
test al, al
je 0x40d394
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edi
call fcn.00558070
lea ecx, [esp + 0x34]
call fcn.00558390
mov word [esp + 0x34], si
mov esi, dword [ebp + 4]
mov ecx, ebp
mov eax, dword [esi + 4]
push eax
push esi
call fcn.00405110
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [esp + 0x30]
add eax, 8
push ecx
push eax
call fcn.00405140
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x18]
add esp, 8
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebx + 8]
add edi, 4
inc esi
cmp edi, eax
mov dword [esp + 0x10], esi
jne 0x40d338
jmp 0x40d40c
mov edi, dword [ebx + 4]
mov eax, dword [ebx + 8]
cmp edi, eax
je 0x40d410
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edi
call fcn.00558070
lea ecx, [esp + 0x34]
call fcn.00558390
mov eax, dword [esp + 0x10]
mov esi, dword [ebp + 4]
mov word [esp + 0x34], ax
inc eax
mov edx, dword [esi + 4]
mov ecx, ebp
push edx
push esi
mov dword [esp + 0x18], eax
call fcn.00405110
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [esp + 0x30]
add eax, 8
push ecx
push eax
call fcn.00405140
mov edx, dword [ebp + 8]
add esp, 8
inc edx
add edi, 4
mov dword [ebp + 8], edx
mov eax, dword [ebx + 8]
cmp edi, eax
jne 0x40d3af
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0x20]
test eax, eax
ja 0x40d483
push 0
push 1
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x2c], esp
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x609c7c
call fcn.00558100
push edi
call fcn.00560f40
sub esp, 8
mov byte [esp + 0x158], 5
mov edi, esp
mov dword [esp + 0x38], esp
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x609c74
call fcn.00558100
push edi
call fcn.00560f40
add esp, 8
mov ecx, 0x619a58
mov byte [esp + 0x158], 4
call fcn.00543a40
xor edi, edi
jmp 0x40d295
lea ecx, [esp + 0x1c]
call fcn.00558060
lea ecx, [esp + 0x20]
mov byte [esp + 0x130], 6
call fcn.00558060
mov byte [esp + 0x130], 7
mov ebx, dword [esp + 0x13c]
test bx, bx
jne 0x40d4ba
push 6
push 0x609454
jmp 0x40d4c7
cmp bx, 1
jne 0x40d4d0
push 6
push 0x609c6c
lea ecx, [esp + 0x24]
call fcn.00558600
lea edx, [esp + 0x1c]
push edx
call fcn.004023c0
add esp, 4
lea eax, [esp + 0x20]
lea edx, [esp + 0x1c]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00558070
call fcn.00402440
add esp, 8
lea ecx, [esp + 0x20]
call fcn.00558520
test ax, ax
push 0
jle 0x40d6de
sub esp, 0x10
lea eax, [esp + 0x2f]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
push 0x619c18
call fcn.00404ee0
sub esp, 0x10
lea edx, [esp + 0x53]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
push 0x619c18
mov byte [esp + 0x15c], 0xb
call fcn.00404ee0
mov ecx, dword [0x619a60]
mov byte [esp + 0x154], 7
call fcn.005455c0
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [esp + 0x28], ecx
je 0x40d62c
mov eax, dword [0x609450]
mov ecx, 0x31
mov dword [esp + 0x60], eax
xor eax, eax
lea edi, [esp + 0x64]
push ebx
rep stosd dword es:[edi], eax
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00558070
lea eax, [esp + 0x68]
lea ecx, [esp + 0x30]
push eax
mov byte [esp + 0x13c], 0xc
call fcn.00404fe0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.00404470
mov ecx, esi
mov byte [esp + 0x158], 7
call fcn.0040d970
push 0
push 0xffff
sub esp, 0x10
lea edx, [esp + 0x46]
mov ecx, esp
mov dword [esp + 0x2c], esp
lea eax, [esp + 0x78]
push edx
push eax
call fcn.00404ee0
lea ecx, [esp + 0x40]
mov byte [esp + 0x148], 0xd
call fcn.00404fe0
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.00558070
mov ecx, dword [0x619a60]
mov byte [esp + 0x14c], 7
call fcn.00545a80
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
mov ecx, dword [esi + 0x1c]
cmp eax, ecx
mov dword [esp + 0x28], eax
jne 0x40d56b
mov ecx, dword [0x619a60]
push 0
call fcn.00545f70
cmp ax, 0xb
jne 0x40d4a5
mov eax, dword [ebp + 4]
mov dword [esp + 0x10], eax
mov edi, dword [eax]
cmp edi, eax
je 0x40d6b5
mov esi, edi
mov edi, dword [edi]
mov eax, dword [esi + 4]
mov edx, dword [esi]
lea ebx, [esi + 8]
mov dword [eax], edx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], ebx
mov dword [eax + 4], ecx
lea ecx, [ebx + 0xc]
mov byte [esp + 0x130], 0xf
call fcn.00404fa0
lea ecx, [ebx + 8]
mov byte [esp + 0x130], 0xe
call fcn.005581a0
mov ecx, ebx
mov byte [esp + 0x130], 7
call fcn.005581a0
push esi
call fcn.005bc500
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x14]
add esp, 4
dec ecx
cmp edi, eax
mov dword [ebp + 8], ecx
jne 0x40d650
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x20]
mov byte [esp + 0x130], 6
call fcn.005581a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x130], 4
call fcn.005581a0
xor edi, edi
jmp 0x40d295
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x609448
call fcn.00558100
push ecx
mov byte [esp + 0x140], 8
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x609440
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x140], 7
call fcn.00543af0
lea ecx, [esp + 0x20]
mov byte [esp + 0x130], 6
call fcn.005581a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x130], 4
call fcn.005581a0
lea ecx, [esp + 0x50]
mov byte [esp + 0x130], 3
call fcn.005581a0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x130], 2
call fcn.005581a0
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
cmp esi, eax
mov byte [esp + 0x130], 0xa
mov edi, eax
je 0x40d78e
push 0
mov ecx, esi
call fcn.00406c10
add esi, 4
cmp esi, edi
jne 0x40d77a
mov esi, dword [esp + 0x40]
push esi
call fcn.005bc500
add esp, 4
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov byte [esp + 0x130], 9
jmp 0x40d818
lea ecx, [esp + 0x50]
mov byte [esp + 0x130], 3
call fcn.005581a0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x130], 2
call fcn.005581a0
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
cmp esi, eax
mov byte [esp + 0x130], 0x11
mov edi, eax
je 0x40d7f9
mov ecx, esi
call fcn.005581a0
add esi, 4
cmp esi, edi
jne 0x40d7e7
mov esi, dword [esp + 0x40]
push esi
call fcn.005bc500
add esp, 4
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov byte [esp + 0x130], 0x10
lea ecx, [esp + 0x38]
call fcn.005581a0
lea ecx, [esp + 0x30]
mov byte [esp + 0x130], 0
call fcn.005581a0
lea ecx, [esp + 0x54]
mov dword [esp + 0x130], 0xffffffff
call fcn.005581a0
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
xor ax, ax
mov dword fs:[0], ecx
pop ebx
add esp, 0x124
ret 8