Function at 0x412640
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x457bb5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x38], 5
call fcn.00412a10
lea ecx, [esi + 0xd4]
mov byte [esp + 0x38], 4
call fcn.004153e0
mov eax, dword [esi + 0xd0]
lea edi, [esi + 0xa4]
xor ebx, ebx
mov byte [esp + 0x38], 3
cmp eax, ebx
je 0x4126c7
mov ecx, dword [edi + 0xc]
push ebx
lea eax, [ecx + 0x10]
mov dword [edi + 0xc], eax
call fcn.00404f30
mov ecx, dword [edi + 0x2c]
dec ecx
mov eax, ecx
mov dword [edi + 0x2c], ecx
cmp eax, ebx
je 0x4126bb
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 8]
cmp ecx, eax
jne 0x4126c2
mov ecx, edi
call fcn.00404d40
cmp dword [edi + 0x2c], ebx
jne 0x412695
mov eax, dword [esi + 0xa0]
push ebp
cmp eax, ebx
mov byte [esp + 0x3c], 2
je 0x4127c6
mov ecx, dword [esi + 0x80]
push ebx
lea edx, [ecx + 0x10]
mov dword [esi + 0x80], edx
call fcn.00404f30
mov ecx, dword [esi + 0xa0]
dec ecx
mov eax, ecx
mov dword [esi + 0xa0], ecx
cmp eax, ebx
je 0x412714
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x7c]
cmp eax, ecx
jne 0x4127ba
mov eax, dword [esi + 0x84]
lea ecx, [eax + 4]
mov dword [esi + 0x84], ecx
mov eax, dword [eax]
push eax
call fcn.004428ea
mov eax, dword [esi + 0xa0]
add esp, 4
cmp eax, ebx
jne 0x412788
lea ecx, [esp + 0x14]
call fcn.0040b7e0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [esi + 0x78]
mov edi, dword [esp + 0x20]
mov ebp, edx
mov edx, dword [esp + 0x1c]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edi
lea ebp, [esi + 0x88]
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0x98]
push eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edi
call fcn.004428ea
add esp, 4
jmp 0x4127ba
mov eax, dword [esi + 0x84]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040bc70
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
lea eax, [esi + 0x78]
mov dword [esi + 0x78], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
cmp dword [esi + 0xa0], ebx
jne 0x4126db
mov eax, dword [esi + 0x70]
lea edi, [esi + 0x44]
cmp eax, ebx
mov byte [esp + 0x3c], 1
je 0x412807
mov ecx, dword [edi + 0xc]
push ebx
lea eax, [ecx + 0x10]
mov dword [edi + 0xc], eax
call fcn.00404f30
mov ecx, dword [edi + 0x2c]
dec ecx
mov eax, ecx
mov dword [edi + 0x2c], ecx
cmp eax, ebx
je 0x4127fb
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 8]
cmp ecx, eax
jne 0x412802
mov ecx, edi
call fcn.00404d40
cmp dword [edi + 0x2c], ebx
jne 0x4127d5
mov eax, dword [esi + 0x40]
mov byte [esp + 0x3c], bl
cmp eax, ebx
je 0x4128ce
mov edi, dword [esi + 0x20]
add edi, 4
dec eax
cmp eax, ebx
mov dword [esi + 0x20], edi
mov ecx, edi
mov dword [esi + 0x40], eax
je 0x412832
cmp ecx, dword [esi + 0x1c]
jne 0x4128c3
mov eax, dword [esi + 0x24]
lea edx, [eax + 4]
mov dword [esi + 0x24], edx
mov eax, dword [eax]
push eax
call fcn.004428ea
mov eax, dword [esi + 0x40]
add esp, 4
cmp eax, ebx
jne 0x412894
lea ecx, [esp + 0x24]
call fcn.00415ab0
mov eax, dword [esp + 0x24]
lea ecx, [esi + 0x18]
mov edx, dword [esp + 0x2c]
mov ebp, ecx
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edi
lea ebp, [esi + 0x28]
mov dword [esi + 0x28], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov edx, dword [esi + 0x38]
push edx
mov dword [ebp + 0xc], edi
call fcn.004428ea
add esp, 4
jmp 0x4128c3
mov eax, dword [esi + 0x24]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [eax]
push eax
call fcn.0040d3a0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ecx, [esi + 0x18]
mov dword [esi + 0x18], edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x20]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x40]
cmp eax, ebx
jne 0x412816
mov eax, dword [esi + 4]
pop ebp
cmp eax, ebx
je 0x4128f3
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4128ea
cmp al, 0xff
je 0x4128ea
dec al
mov byte [ecx], al
jmp 0x4128f3
push ecx
call fcn.004428ea
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret