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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44022b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4543f8]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x4543f8]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov eax, ecx
mov ecx, dword [eax + 0x20]
mov ecx, dword [ecx]
xor edi, edi
mov dword [esp + 0x28], eax
cmp ecx, edi
je 0x4051c5
mov edx, dword [eax + 0x20]
mov ecx, dword [edx]
mov edx, dword [eax + 0x30]
mov edx, dword [edx]
add edx, ecx
cmp ecx, edx
jae 0x4051c5
mov ecx, dword [eax + 0x30]
dec dword [ecx]
mov eax, dword [eax + 0x20]
mov ecx, dword [eax]
lea edx, [ecx + 1]
mov dword [eax], edx
movzx eax, byte [ecx]
jmp 0x40522d
mov ecx, dword [eax + 0x4c]
cmp ecx, edi
je 0x40522a
cmp dword [eax + 0x3c], edi
jne 0x4051e4
push ecx
call fcn.004125b0
add esp, 4
cmp eax, 0xffffffff
je 0x40522a
movzx eax, al
jmp 0x40522d
mov dword [esp + 0x70], edi
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], edi
mov byte [esp + 0x78], 0
push ecx
mov dword [esp + 0xa4], edi
call fcn.004125b0
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
jne 0x405253
lea ecx, [esp + 0x70]
mov dword [esp + 0xa0], 0xffffffff
call fcn.00404200
or eax, 0xffffffff
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00411660
mov esp, ebp
pop ebp
ret
xor edi, edi
or eax, 0xffffffff
sub eax, dword [esp + 0x88]
cmp eax, 1
ja 0x405267
call fcn.00410870
mov esi, dword [esp + 0x88]
inc esi
cmp esi, 0xfffffffe
jbe 0x405279
call fcn.00410870
mov eax, dword [esp + 0x8c]
cmp eax, esi
jae 0x4054d5
mov ecx, dword [esp + 0x88]
push ecx
push esi
lea ecx, [esp + 0x78]
call fcn.0040b220
mov eax, dword [esp + 0x8c]
cmp esi, edi
jbe 0x4052d9
cmp eax, 0x10
mov eax, dword [esp + 0x78]
jae 0x4052b2
lea eax, [esp + 0x78]
mov edx, dword [esp + 0x88]
mov byte [eax + edx], bl
cmp dword [esp + 0x8c], 0x10
mov eax, dword [esp + 0x78]
mov dword [esp + 0x88], esi
jae 0x4052d5
lea eax, [esp + 0x78]
mov byte [eax + esi], 0
lea esi, [esp + 0x40]
lea ecx, [esp + 0x70]
call fcn.00404270
mov edi, eax
lea esi, [esp + 0x34]
lea ecx, [esp + 0x70]
mov byte [esp + 0xa0], 1
call fcn.00404270
mov ebx, eax
mov esi, edi
mov byte [esp + 0xa0], 2
call fcn.00407880
mov edi, eax
mov eax, dword [esp + 0x88]
mov esi, ebx
mov dword [esp + 0x24], eax
call fcn.00407880
mov ebx, dword [esp + 0x28]
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx]
lea esi, [esp + 0x1c]
push esi
lea esi, [esp + 0x1c]
push esi
lea esi, [esp + 0x1f]
push esi
lea esi, [esp + 0x24]
push esi
mov esi, dword [esp + 0x34]
add esi, edi
push esi
push eax
lea eax, [ebx + 0x44]
push eax
mov eax, dword [edx + 0x10]
call eax
push 3
lea ecx, [esp + 0x30]
mov edi, eax
mov byte [esp + 0xa4], 1
call fcn.0040f1f0
mov byte [esp + 0xa0], 3
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4053be
cmp dword [eax], 0xfffffffd
je 0x4053be
cmp dword [eax], 0
mov esi, eax
je 0x405394
mov eax, dword [esi]
lea ecx, [esp + 0x34]
cmp eax, ecx
je 0x405394
cmp dword [eax + 4], 0
lea esi, [eax + 4]
jne 0x405381
cmp dword [esi], 0
jne 0x4053b0
push 0xbd
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VCincludexutility
push str.ITERATOR_LIST_CORRUPTED_
call fcn.0040f260
add esp, 0xc
mov edx, dword [esp + 0x38]
mov dword [esi], edx
mov dword [esp + 0x34], 0
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa0], 1
call fcn.0040f230
push 3
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], 0
call fcn.0040f1f0
mov byte [esp + 0xa0], 4
mov esi, dword [esp + 0x40]
test esi, esi
je 0x40543d
cmp dword [esi], 0xfffffffd
je 0x40543d
cmp dword [esi], 0
je 0x405418
lea esp, [esp]
mov eax, dword [esi]
lea ecx, [esp + 0x40]
cmp eax, ecx
je 0x405413
cmp dword [eax + 4], 0
lea esi, [eax + 4]
jne 0x405400
cmp dword [esi], 0
jne 0x40542f
push 0xbd
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VCincludexutility
push str.ITERATOR_LIST_CORRUPTED_
call fcn.0040f260
add esp, 0xc
mov edx, dword [esp + 0x44]
mov dword [esi], edx
mov dword [esp + 0x40], 0
lea ecx, [esp + 0x20]
mov byte [esp + 0xa0], 0
call fcn.0040f230
test edi, edi
jl 0x405216
cmp edi, 1
jle 0x4054f9
cmp edi, 3
jne 0x405216
cmp dword [esp + 0x88], 1
jb 0x405566
lea esi, [esp + 0x4c]
lea ecx, [esp + 0x70]
call fcn.00404270
push 1
mov esi, eax
mov byte [esp + 0xa4], 8
call fcn.00407880
push eax
lea eax, [esp + 0x1f]
push 1
push eax
call fcn.00411a50
add esp, 0x10
lea edi, [esp + 0x4c]
mov byte [esp + 0xa0], 0
call fcn.004063a0
movzx esi, byte [esp + 0x17]
lea ecx, [esp + 0x70]
mov dword [esp + 0xa0], 0xffffffff
call fcn.00404200
mov eax, esi
jmp 0x40522d
cmp esi, edi
jne 0x4052a3
cmp eax, 0x10
mov eax, dword [esp + 0x78]
mov dword [esp + 0x88], edi
jae 0x4054f1
lea eax, [esp + 0x78]
mov byte [eax], 0
jmp 0x4052d9
lea eax, [esp + 0x17]
lea ecx, [esp + 0x70]
cmp dword [esp + 0x1c], eax
jne 0x405582
lea esi, [esp + 0x64]
call fcn.00404270
mov esi, eax
mov byte [esp + 0xa0], 6
call fcn.00407880
mov ecx, dword [esp + 0x18]
sub ecx, eax
push ecx
push 0
lea ecx, [esp + 0x78]
call fcn.00406af0
push 3
lea ecx, [esp + 0x34]
mov byte [esp + 0xa4], 0
call fcn.0040f1f0
lea edi, [esp + 0x64]
mov byte [esp + 0xa0], 7
call fcn.00401190
lea ecx, [esp + 0x30]
mov byte [esp + 0xa0], 0
call fcn.0040f230
mov edx, dword [ebx + 0x4c]
push edx
call fcn.004125b0
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
jne 0x405251
jmp 0x405216
lea esi, [esp + 0x58]
call fcn.00404270
mov esi, eax
mov byte [esp + 0xa0], 5
call fcn.00407880
mov esi, dword [esp + 0x88]
sub esi, dword [esp + 0x18]
lea edi, [esp + 0x58]
add esi, eax
mov byte [esp + 0xa0], 0
call fcn.004063a0
test esi, esi
jle 0x4055db
lea esp, [esp]
mov edx, dword [esp + 0x18]
mov ecx, dword [ebx + 0x4c]
movsx eax, byte [esi + edx - 1]
dec esi
push ecx
push eax
call fcn.00412a50
add esp, 8
test esi, esi
jg 0x4055c0
movzx esi, byte [esp + 0x17]
lea ecx, [esp + 0x70]
mov dword [esp + 0xa0], 0xffffffff
call fcn.00404200
mov eax, esi
jmp 0x40522d