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

Disassembly:
push 0xffffffffffffffff
push 0x411e59
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0xa4]
push edi
call dword [0x4136b0]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0xa4]
mov edi, dword [0x4134e4]
push eax
call edi
mov ecx, dword [esi + 0x70]
push ecx
mov ecx, dword [esi + 0xa4]
call edi
mov ecx, dword [esi + 0xa4]
mov ebx, dword [0x4134e0]
call ebx
mov edx, dword [esi + 0x74]
mov ecx, dword [esi + 0xa4]
push edx
call edi
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0xa4]
push eax
call edi
mov ecx, dword [esi + 0xa4]
call ebx
mov ecx, dword [esi + 0x7c]
push ecx
mov ecx, dword [esi + 0xa4]
call edi
mov edx, dword [esi + 0x80]
mov ecx, dword [esi + 0xa4]
push edx
call edi
mov eax, dword [esi + 0x84]
mov ecx, dword [esi + 0xa4]
push eax
call edi
xor edi, edi
push edi
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
call dword [0x413670]
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0xc]
cmp edx, dword [eax + 8]
mov dword [esp + 0x58], edi
setne al
movzx ecx, al
push ecx
mov ecx, dword [esi + 0x84]
call dword [0x4136a4]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
sub edx, ecx
test edx, edx
jle 0x40c177
push ebp
jmp 0x40be00
mov ebx, dword [0x413678]
add ecx, edi
mov ecx, dword [eax + ecx*4 + 0x14]
push 0x415728
call ebx
mov ecx, eax
call dword [0x413148]
test al, al
je 0x40c161
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
add ecx, edi
mov ecx, dword [eax + ecx*4 + 0x14]
call ebx
push eax
mov ecx, 0x427380
call dword [0x41314c]
mov ebx, eax
mov eax, dword [0x413234]
mov dword [esp + 0x1c], eax
mov edx, 1
lock xadd dword [eax], edx
cmp edi, 9
mov byte [esp + 0x5c], 1
jge 0x40bf74
mov byte [esp + 0x44], 0x20
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x16]
call dword [0x413218]
mov byte [esp + 0x48], 0x20
mov ecx, dword [esp + 0x48]
push ecx
lea ecx, [esp + 0x14]
call dword [0x413218]
lea edx, [esp + 0x2c]
push edx
mov ecx, ebx
call fcn.0040d650
mov ebp, eax
push 0
lea eax, [esp + 0x2c]
push str._1__2
push eax
mov byte [esp + 0x68], 2
call fcn.00408bb0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0xa
push 0
lea edx, [edi + 1]
push edx
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
mov byte [esp + 0x70], 3
call dword [0x413140]
lea edx, [esp + 0x12]
push edx
push 0
push ebp
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
mov byte [esp + 0x6c], 4
call dword [0x413220]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 5
call dword [0x413238]
mov edx, dword [esp + 0x20]
mov ebp, dword [0x413284]
mov byte [esp + 0x5c], 4
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x40bf1a
mov ecx, dword [esp + 0x20]
push ecx
call ebp
add esp, 4
mov edx, dword [esp + 0x24]
mov byte [esp + 0x5c], 3
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x40bf36
mov ecx, dword [esp + 0x24]
push ecx
call ebp
add esp, 4
mov edx, dword [esp + 0x28]
mov byte [esp + 0x5c], 2
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x40bf52
mov ecx, dword [esp + 0x28]
push ecx
call ebp
add esp, 4
mov edx, dword [esp + 0x2c]
mov byte [esp + 0x5c], 1
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x40c086
mov ecx, dword [esp + 0x2c]
push ecx
call ebp
jmp 0x40c083
mov byte [esp + 0x4c], 0x20
mov edx, dword [esp + 0x4c]
push edx
lea ecx, [esp + 0x1a]
call dword [0x413218]
mov byte [esp + 0x50], 0x20
mov eax, dword [esp + 0x50]
push eax
lea ecx, [esp + 0x18]
call dword [0x413218]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebx
call fcn.0040d650
mov ebp, eax
push 0
lea edx, [esp + 0x3c]
push 0x415754
push edx
mov byte [esp + 0x68], 6
call fcn.00408bb0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0xa
push 0
lea edx, [edi + 1]
push edx
lea ecx, [esp + 0x44]
push ecx
mov ecx, eax
mov byte [esp + 0x70], 7
call dword [0x413140]
lea edx, [esp + 0x16]
push edx
push 0
push ebp
lea ecx, [esp + 0x3c]
push ecx
mov ecx, eax
mov byte [esp + 0x6c], 8
call dword [0x413220]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 9
call dword [0x413238]
mov edx, dword [esp + 0x30]
mov ebp, dword [0x413284]
mov byte [esp + 0x5c], 8
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x40c02e
mov ecx, dword [esp + 0x30]
push ecx
call ebp
add esp, 4
mov edx, dword [esp + 0x34]
mov byte [esp + 0x5c], 7
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x40c04a
mov ecx, dword [esp + 0x34]
push ecx
call ebp
add esp, 4
mov edx, dword [esp + 0x38]
mov byte [esp + 0x5c], 6
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x40c066
mov ecx, dword [esp + 0x38]
push ecx
call ebp
add esp, 4
mov edx, dword [esp + 0x3c]
mov byte [esp + 0x5c], 1
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x40c086
mov ecx, dword [esp + 0x3c]
push ecx
call dword [0x413284]
add esp, 4
mov ecx, dword [esi + 0xa4]
lea edx, [esp + 0x1c]
push edx
call dword [0x4136ac]
mov ebp, eax
push 1
mov ecx, ebp
call dword [0x4134c0]
mov ecx, dword [esi + 0x14]
call dword [0x41367c]
mov dword [esp + 0x40], eax
test eax, eax
je 0x40c0fc
push 0x415728
mov ecx, eax
call dword [0x413678]
mov ecx, eax
call dword [0x413148]
mov ecx, dword [esp + 0x40]
test al, al
je 0x40c0e5
call dword [0x413678]
push eax
mov ecx, 0x427380
call dword [0x41314c]
jmp 0x40c0fe
call dword [0x413678]
push eax
mov ecx, 0x427358
call dword [0x41314c]
mov eax, dword [eax + 0x14]
jmp 0x40c0fe
xor eax, eax
cmp ebx, eax
sete al
movzx ecx, al
push ecx
mov ecx, ebp
call dword [0x4136a8]
mov edx, dword [esi + 0x34]
push 0
push str.1map__
push edx
push str.2triggered__
push ebp
call dword [0x41317c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 8]
add ecx, edi
mov edx, dword [eax + ecx*4 + 0x14]
mov ecx, dword [esi + 0x34]
add esp, 0x14
push edx
push ebp
call dword [0x413144]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x5c], 0
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40c161
mov edx, dword [esp + 0x1c]
push edx
call dword [0x413284]
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
inc edi
sub edx, ecx
cmp edi, edx
jl 0x40be00
pop ebp
pop edi
pop esi
mov dword [esp + 0x50], 0xffffffff
or ecx, 0xffffffff
pop ebx
lock xadd dword [eax], ecx
jne 0x40c199
mov edx, dword [esp + 8]
push edx
call dword [0x413200]
add esp, 4
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret