Function at 0x40a0c0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42d610
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
mov edi, dword [esi + 0x24]
mov word [esi + 0x70], bp
mov eax, dword [edi + 0x50]
mov word [esi + 0x6e], ax
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [edi + 0x30]
mov edi, dword [esi + 0x68]
sub ecx, edi
add eax, ecx
cmp word [esi + 0x72], bp
mov dword [esi + 0x78], eax
je 0x40a2cc
mov edi, dword [esp + 0x2c]
push ebx
mov bx, word [esi + 0x6e]
cmp edi, ebp
mov dword [esp + 0x18], ebp
je 0x40a13e
mov edx, dword [edi]
push ebp
push ebp
mov ecx, edi
call dword [edx + 4]
mov eax, dword [edi]
xor ecx, ecx
mov cx, word [esi + 0x72]
push ecx
mov ecx, edi
call dword [eax + 8]
mov edx, dword [0x438ad8]
mov dword [esp + 0x18], edx
cmp word [esi + 0x72], 0
mov dword [esp + 0x14], ebp
jbe 0x40a2b0
mov eax, dword [esi + 0x30]
mov ecx, dword [0x439f34]
mov edi, dword [eax + ebp*4]
mov dword [esp + 0x10], ecx
mov al, byte [esi + 0x40]
mov dword [esp + 0x28], 0
test al, al
je 0x40a195
lea edx, [esp + 0x1c]
mov ecx, edi
push edx
call fcn.0040c340
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.004238b5
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 0
call fcn.004237c8
mov cl, byte [esi + 0x40]
mov eax, edi
cmp cl, 1
jne 0x40a1b1
test edi, edi
jne 0x40a1a6
mov eax, dword [esi + 0x20]
push 0
push eax
call fcn.0040b2c0
add esp, 8
mov eax, dword [esi + 0x24]
mov ecx, edi
push eax
call fcn.0040bfd0
mov ecx, dword [esi + 0x74]
add ecx, eax
mov al, byte [esi + 0x40]
test al, al
mov dword [esi + 0x74], ecx
je 0x40a1d7
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, edi
call fcn.0040c320
mov eax, dword [esi + 0x24]
mov edx, ebx
and edx, 0xffff
mov ecx, dword [eax + 0x50]
cmp ecx, edx
je 0x40a1ff
mov word [esi + 0x70], 1
mov ebx, dword [eax + 0x50]
test ebp, ebp
jne 0x40a203
mov dword [esi + 0x78], ebp
mov word [esi + 0x6e], bx
jmp 0x40a203
inc word [esi + 0x70]
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x40a221
mov edi, dword [esp + 0x18]
mov eax, ebp
cdq
idiv edi
test edx, edx
jne 0x40a221
mov eax, dword [ecx]
push edi
call dword [eax]
test al, al
je 0x40a243
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.004237c8
xor ecx, ecx
inc ebp
mov cx, word [esi + 0x72]
cmp ebp, ecx
jl 0x40a14d
jmp 0x40a2ac
mov al, byte [esp + 0x34]
test al, al
je 0x40a293
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x40a267
mov bl, byte [ecx + 0x4c]
xor eax, eax
test bl, bl
setne al
lea eax, [eax + eax - 1]
test eax, eax
jne 0x40a270
mov dword [ecx + 0x30], 0
jmp 0x40a275
call fcn.0040ded0
mov edx, dword [esi + 0x24]
mov ebx, dword [esi + 0x78]
mov ecx, dword [edx + 0x1c]
mov edx, dword [esi + 0x68]
add edx, ebx
mov eax, dword [ecx]
push edx
call dword [eax + 0x18]
mov dword [esp + 0x14], 0x6a
jmp 0x40a29b
mov dword [esp + 0x14], 0x69
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.004237c8
mov edi, dword [esp + 0x30]
test edi, edi
pop ebx
je 0x40a2bc
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40a2cc
push eax
mov ecx, esi
call fcn.004099b0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 8