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

Disassembly:
push 0xffffffffffffffff
push 0x4214a3
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov eax, dword [str.LocalReAlloc]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov esi, dword [esp + 0x130]
push esi
push 0x4236e0
call fcn.004113f6
add esp, 8
xor edi, edi
mov ecx, 0x4236d8
mov eax, esi
lea ebp, [edi + 2]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40457e
test dl, dl
je 0x40457a
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40457e
add eax, ebp
add ecx, ebp
test dl, dl
jne 0x404560
xor eax, eax
jmp 0x404583
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x404592
mov dword [0x42d180], edi
jmp 0x4053df
mov ebx, 0x13
push ebx
push 0x4236c4
push esi
call fcn.004114bb
add esp, 0xc
test eax, eax
jne 0x4053df
call fcn.00407a19
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4045c8
push 0x80004005
call fcn.00402630
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push ebp
add esi, 0x13
push 0x4236c0
push esi
mov dword [esp + 0x134], edi
call fcn.004114bb
add esp, 0xc
test eax, eax
jne 0x404a03
call fcn.00407a19
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x404613
push 0x80004005
call fcn.00402630
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
push esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x12c], 1
call fcn.00403cc0
push 0x401e10
push 0x401fc0
mov ebx, 0xd
push ebx
push 4
lea ecx, [esp + 0x4c]
push ecx
call fcn.004128f4
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4236bc
mov byte [esp + 0x130], 2
mov dword [esp + 0x30], ebx
call fcn.00403dc0
mov ebp, dword [esp + 0x34]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ecx
add ebp, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
push ebp
mov byte [esp + 0x13c], 3
call fcn.00402a90
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [esp + 0x138], 2
call fcn.00404220
add esp, 0x10
cmp dword [esp + 0x28], ebx
jge 0x4046f0
push 0x4236ac
call fcn.004113f6
add esp, 4
push 0x401e10
push ebx
push 4
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0x138], 1
call fcn.00412891
lea ecx, [esp + 0x30]
call fcn.00402a10
lea ecx, [esp + 0x14]
call fcn.00402a10
jmp 0x4053df
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x18]
call fcn.00403370
mov eax, dword [esp + 0x44]
push eax
call fcn.00412828
mov ecx, dword [esp + 0x4c]
mov ebx, eax
push ecx
mov dword [esp + 0x28], ebx
call fcn.00412828
mov edx, dword [esp + 0x1c]
add esp, 8
mov dword [esp + 0x28], eax
cmp dword [edx - 0xc], edi
je 0x4049bd
cmp ebx, edi
jle 0x4049bd
mov eax, dword [0x42d1a4]
xor esi, esi
cmp eax, edi
jle 0x4047f3
xor edi, edi
test edi, edi
jl 0x404964
cmp esi, eax
jge 0x404964
mov eax, dword [0x42d1a0]
lea ecx, [esp + 0x14]
add eax, edi
push ecx
push eax
call fcn.00402b60
add esp, 8
test al, al
je 0x4047e2
push esi
mov ecx, 0x42d19c
call fcn.00402610
cmp dword [eax + 4], ebx
jne 0x4047e2
lea edx, [esp + 0x54]
push edx
push esi
mov ecx, 0x42d19c
call fcn.00402610
add eax, 8
push eax
call fcn.00402b60
add esp, 8
test al, al
je 0x4047e2
lea eax, [esp + 0x58]
push eax
push esi
mov ecx, 0x42d19c
call fcn.00402610
add eax, 0xc
push eax
call fcn.00402b60
add esp, 8
test al, al
je 0x4047e2
lea ecx, [esp + 0x5c]
push ecx
push esi
mov ecx, 0x42d19c
call fcn.00402610
add eax, 0x10
push eax
call fcn.00402b60
add esp, 8
test al, al
jne 0x404939
mov eax, dword [0x42d1a4]
inc esi
add edi, 0x18
cmp esi, eax
jl 0x404745
lea ecx, [esp + 0x88]
call fcn.00402cd0
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x8c]
mov byte [esp + 0x12c], 4
call fcn.00403370
mov edx, dword [esp + 0x44]
push edx
call fcn.00412828
mov dword [esp + 0x90], eax
add esp, 4
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x94]
call fcn.00403370
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x98]
call fcn.00403370
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x9c]
call fcn.00403370
push 0x68
call fcn.004075ce
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov bl, 5
mov byte [esp + 0x128], bl
test esi, esi
je 0x404969
push ecx
lea eax, [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.00402bf0
push ecx
lea edx, [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
mov byte [esp + 0x134], 6
call fcn.00402bf0
push ecx
lea eax, [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
mov byte [esp + 0x138], 7
call fcn.00402bf0
mov ecx, dword [esp + 0x74]
push ecx
mov byte [esp + 0x138], 8
call fcn.00412828
mov edx, dword [esp + 0x70]
add esp, 4
push eax
push edx
call fcn.00412828
add esp, 4
push eax
mov eax, dword [esp + 0x78]
push eax
call fcn.00412828
mov ecx, dword [esp + 0x68]
add esp, 4
push eax
push ecx
call fcn.00412828
mov edx, dword [esp + 0x68]
add esp, 4
push eax
push edx
call fcn.00412828
add esp, 4
push eax
mov eax, dword [esp + 0x40]
push eax
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.00402bf0
mov ecx, esi
mov byte [esp + 0x150], bl
call fcn.00406940
mov esi, eax
jmp 0x40496b
mov edx, dword [esp + 0x28]
push edx
push esi
mov ecx, 0x42d19c
call fcn.00402610
mov ecx, dword [eax + 0x14]
call fcn.00407530
push 0x401e10
push 0xd
push 4
lea eax, [esp + 0x48]
push eax
jmp 0x4046cc
call fcn.0040771b
xor esi, esi
push esi
push 0x423694
mov byte [esp + 0x130], 4
mov dword [esp + 0xa4], esi
call fcn.004113f6
sub esp, 0x10
lea eax, [esp + 0xa0]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.004033f0
mov ecx, 0x42d19c
call fcn.004044a0
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, esi
call fcn.00407530
lea ecx, [esp + 0x88]
call fcn.00402d60
push 0x401e10
push 0xd
push 4
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x138], 1
call fcn.00412891
mov byte [esp + 0x128], 0
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4053b4
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
jmp 0x4053b4
push ebp
push 0x423690
push esi
call fcn.004114bb
add esp, 0xc
test eax, eax
jne 0x404bbb
lea ecx, [esp + 0x34]
call fcn.00402bc0
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x12c], 9
call fcn.00403cc0
push 0x401e10
push 0x401fc0
push 0xd
push 4
lea ecx, [esp + 0xc8]
push ecx
call fcn.004128f4
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
mov bl, 0xa
push 0x4236bc
mov byte [esp + 0x130], bl
mov dword [esp + 0x40], 0xd
call fcn.00403dc0
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0xc0]
push eax
push ecx
lea edx, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x13c], 0xb
call fcn.00402bf0
mov byte [esp + 0x138], bl
call fcn.00404220
add esp, 0x10
cmp dword [esp + 0x38], ebp
jge 0x404ae2
push 0x401e10
push 0xd
push 4
lea eax, [esp + 0xc4]
push eax
mov byte [esp + 0x138], 9
call fcn.00412891
lea ecx, [esp + 0x34]
call fcn.00402a10
lea ecx, [esp + 0x14]
call fcn.00402a10
jmp 0x4053df
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esp + 0x18]
call fcn.00403370
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], 0
je 0x404b6c
mov eax, dword [0x42d1a4]
xor esi, esi
test eax, eax
jle 0x404b6c
xor edi, edi
lea ebx, [ebx]
test edi, edi
jl 0x404964
cmp esi, eax
jge 0x404964
mov eax, dword [0x42d1a0]
lea ecx, [esp + 0x14]
add eax, edi
push ecx
push eax
call fcn.00402b60
add esp, 8
test al, al
je 0x404b5f
push esi
mov ecx, 0x42d19c
call fcn.00402610
cmp dword [eax + 4], 0
je 0x404b5f
push 0xffffffffffffffff
push esi
mov ecx, 0x42d19c
call fcn.00402610
mov ecx, dword [eax + 0x14]
call fcn.00405ba0
mov eax, dword [0x42d1a4]
inc esi
add edi, 0x18
cmp esi, eax
jl 0x404b10
push 0x401e10
push 0xd
push 4
lea edx, [esp + 0xc4]
push edx
mov byte [esp + 0x138], 9
call fcn.00412891
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x128], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4053b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4053b4
push ebp
push 0x42368c
push esi
call fcn.004114bb
add esp, 0xc
test eax, eax
jne 0x404d1f
push 7
lea ecx, [esi + 3]
push 0x423684
push ecx
call fcn.004114bb
add esp, 0xc
test eax, eax
jne 0x404d1f
mov ebx, dword [0x42d1a4]
cmp ebx, edi
je 0x4046e2
xor ebp, ebp
xor esi, esi
test ebx, ebx
jle 0x404cb1
push 0xffffffffffffffff
push esi
mov ecx, 0x42d19c
call fcn.00402610
mov ecx, dword [eax + 0x14]
call fcn.00405ba0
push esi
mov ecx, 0x42d19c
call fcn.00402610
mov edi, dword [eax + 0x14]
push esi
mov ecx, 0x42d19c
add edi, 0x18
call fcn.00402610
mov edx, dword [eax + 0x14]
mov eax, dword [edx + 0x14]
cmp eax, dword [edi]
push esi
mov ecx, 0x42d19c
jle 0x404c55
call fcn.00402610
mov ecx, dword [eax + 0x14]
mov eax, dword [ecx + 0x14]
jmp 0x404c60
call fcn.00402610
mov edx, dword [eax + 0x14]
mov eax, dword [edx + 0x18]
cmp ebp, eax
jg 0x404ca8
push esi
mov ecx, 0x42d19c
call fcn.00402610
mov edi, dword [eax + 0x14]
push esi
mov ecx, 0x42d19c
add edi, 0x18
call fcn.00402610
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + 0x14]
cmp ecx, dword [edi]
push esi
mov ecx, 0x42d19c
jle 0x404c9d
call fcn.00402610
mov edx, dword [eax + 0x14]
mov ebp, dword [edx + 0x14]
jmp 0x404ca8
call fcn.00402610
mov eax, dword [eax + 0x14]
mov ebp, dword [eax + 0x18]
inc esi
cmp esi, ebx
jl 0x404c07
add ebp, 0x7d0
push ebp
call dword [0x423228]
xor edi, edi
test ebx, ebx
jle 0x404d0c
xor esi, esi
test esi, esi
jl 0x404964
cmp edi, dword [0x42d1a4]
jge 0x404964
mov ecx, dword [0x42d1a0]
mov ecx, dword [esi + ecx + 0x14]
test ecx, ecx
je 0x404d04
cmp dword [ecx - 4], 0
lea eax, [ecx - 4]
je 0x404cfb
mov edx, dword [ecx]
mov eax, dword [edx]
push 3
call eax
jmp 0x404d04
push eax
call fcn.004075fd
add esp, 4
inc edi
add esi, 0x18
cmp edi, ebx
jl 0x404cc6
push 0xffffffffffffffff
push 0
mov ecx, 0x42d19c
call fcn.00403060
jmp 0x4053b4
push ebp
push 0x423680
push esi
call fcn.004114bb
add esp, 0xc
test eax, eax
jne 0x404eb9
push 8
lea ecx, [esi + 3]
push 0x423674
push ecx
call fcn.004114bb
add esp, 0xc
test eax, eax
jne 0x404eb9
mov ebx, dword [0x42d1a4]
cmp ebx, edi
je 0x4046e2
xor ebp, ebp
xor esi, esi
test ebx, ebx
jle 0x404e1a
jmp 0x404d70
push 0xffffffffffffffff
push esi
mov ecx, 0x42d19c
call fcn.00402610
mov ecx, dword [eax + 0x14]
call fcn.00405ba0
push esi
mov ecx, 0x42d19c
call fcn.00402610
mov edi, dword [eax + 0x14]
push esi
mov ecx, 0x42d19c
add edi, 0x18
call fcn.00402610
mov edx, dword [eax + 0x14]
mov eax, dword [edx + 0x14]
cmp eax, dword [edi]
push esi
mov ecx, 0x42d19c
jle 0x404dbe
call fcn.00402610
mov ecx, dword [eax + 0x14]
mov eax, dword [ecx + 0x14]
jmp 0x404dc9
call fcn.00402610
mov edx, dword [eax + 0x14]
mov eax, dword [edx + 0x18]
cmp ebp, eax
jg 0x404e11
push esi
mov ecx, 0x42d19c
call fcn.00402610
mov edi, dword [eax + 0x14]
push esi
mov ecx, 0x42d19c
add edi, 0x18
call fcn.00402610
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + 0x14]
cmp ecx, dword [edi]
push esi
mov ecx, 0x42d19c
jle 0x404e06
call fcn.00402610
mov edx, dword [eax + 0x14]
mov ebp, dword [edx + 0x14]
jmp 0x404e11
call fcn.00402610
mov eax, dword [eax + 0x14]
mov ebp, dword [eax + 0x18]
inc esi
cmp esi, ebx
jl 0x404d70
add ebp, 0x7d0
push ebp
call dword [0x423228]
xor edi, edi
test ebx, ebx
jle 0x404e76
xor esi, esi
nop
test esi, esi
jl 0x404964
cmp edi, dword [0x42d1a4]
jge 0x404964
mov ecx, dword [0x42d1a0]
mov ecx, dword [esi + ecx + 0x14]
test ecx, ecx
je 0x404e6e
cmp dword [ecx - 4], 0
lea eax, [ecx - 4]
je 0x404e65
mov edx, dword [ecx]
mov eax, dword [edx]
push 3
call eax
jmp 0x404e6e
push eax
call fcn.004075fd
add esp, 4
inc edi
add esi, 0x18
cmp edi, ebx
jl 0x404e30
push 0xffffffffffffffff
push 0
mov ecx, 0x42d19c
call fcn.00403060
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x128], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404eaf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xff
jmp 0x4053e1
push ebp
push 0x423670
push esi
call fcn.004114bb
add esp, 0xc
test eax, eax
jne 0x40522f
lea ecx, [esp + 0x18]
call fcn.00402bc0
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x12c], 0xc
call fcn.00403cc0
push 0x401e10
push 0x401fc0
mov ebp, 6
push ebp
push 4
lea ecx, [esp + 0x80]
push ecx
call fcn.004128f4
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4236bc
mov byte [esp + 0x130], 0xd
mov dword [esp + 0x2c], ebp
call fcn.00403dc0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x78]
push eax
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x13c], 0xe
call fcn.00402bf0
mov byte [esp + 0x138], 0xd
call fcn.00404220
add esp, 0x10
cmp dword [esp + 0x24], ebp
jge 0x404f91
push 0x401e10
push ebp
push 4
lea eax, [esp + 0x7c]
push eax
mov byte [esp + 0x138], 0xc
call fcn.00412891
lea ecx, [esp + 0x18]
call fcn.00402a10
lea ecx, [esp + 0x14]
call fcn.00402a10
jmp 0x4053df
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x18]
call fcn.00403370
lea edx, [esp + 0x14]
push 0x423668
push edx
call fcn.00402b90
add esp, 8
test al, al
je 0x404fc3
push 0x42b2a4
lea ecx, [esp + 0x18]
call fcn.00403cc0
push 0x423658
call fcn.004113f6
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call dword [0x4233c4]
cmp eax, edi
je 0x40500e
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00412430
mov edx, dword [esp + 0x28]
add esp, 0xc
push edx
call dword [0x4233cc]
push eax
lea ecx, [esp + 0x18]
call fcn.00403cc0
jmp 0x405017
lea ecx, [esp + 0x14]
call fcn.00402b00
mov esi, dword [esp + 0x14]
push esi
push 0x423650
call fcn.004113f6
add esp, 8
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403370
mov ecx, dword [esp + 0x84]
push ecx
call fcn.00412828
add esp, 4
cmp dword [esi - 0xc], 0
mov edi, eax
je 0x40520c
mov edx, dword [esp + 0x18]
cmp dword [edx - 0xc], 0
je 0x40520c
xor esi, esi
cmp dword [0x42d1a4], esi
jle 0x4050ba
jmp 0x405070
lea eax, [esp + 0x14]
push eax
push esi
mov ecx, 0x42d19c
call fcn.00402610
push eax
call fcn.00402b60
add esp, 8
test al, al
je 0x4050b1
lea ecx, [esp + 0x18]
push ecx
push esi
mov ecx, 0x42d19c
call fcn.00402610
add eax, 8
push eax
call fcn.00402b60
add esp, 8
test al, al
jne 0x405178
inc esi
cmp esi, dword [0x42d1a4]
jl 0x405070
lea ecx, [esp + 0xa0]
call fcn.00402cd0
lea eax, [esp + 0x14]
mov bl, 0xf
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0x12c], bl
call fcn.00403370
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0xac]
mov dword [esp + 0xa8], 0
call fcn.00403370
push 0x68
call fcn.004075ce
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov byte [esp + 0x128], 0x10
test esi, esi
je 0x4051bd
mov edx, dword [esp + 0x80]
push edx
call fcn.00412828
add esp, 4
push eax
mov eax, dword [esp + 0x7c]
push eax
call fcn.00412828
add esp, 4
push eax
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00402bf0
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
mov byte [esp + 0x13c], 0x11
call fcn.00402bf0
mov ecx, esi
mov byte [esp + 0x138], 0x10
call fcn.00406d70
mov esi, eax
jmp 0x4051bf
push edi
push esi
mov ecx, 0x42d19c
call fcn.00402610
mov ecx, dword [eax + 0x14]
call fcn.00407530
push 0x401e10
push ebp
push 4
lea edx, [esp + 0x7c]
push edx
mov byte [esp + 0x138], 0xc
call fcn.00412891
lea ecx, [esp + 0x18]
call fcn.00402a10
lea ecx, [esp + 0x14]
call fcn.00402a10
jmp 0x4053df
xor esi, esi
push esi
push 0x423694
mov byte [esp + 0x130], bl
mov dword [esp + 0xbc], esi
call fcn.004113f6
sub esp, 0x10
lea edx, [esp + 0xb8]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.004033f0
mov ecx, 0x42d19c
call fcn.004044a0
push edi
mov ecx, esi
call fcn.00407530
lea ecx, [esp + 0xa0]
call fcn.00402d60
push 0x401e10
push ebp
push 4
lea eax, [esp + 0x7c]
push eax
mov byte [esp + 0x138], 0xc
call fcn.00412891
lea ecx, [esp + 0x18]
jmp 0x4053af
push ebp
push 0x42364c
push esi
call fcn.004114bb
add esp, 0xc
test eax, eax
jne 0x4053b4
lea ecx, [esp + 0x2c]
call fcn.00402bc0
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x12c], 0x12
call fcn.00403cc0
push 0x401e10
push 0x401fc0
push 0xd
push 4
lea ecx, [esp + 0xfc]
push ecx
call fcn.004128f4
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4236bc
mov byte [esp + 0x130], bl
mov dword [esp + 0x28], 0xd
call fcn.00403dc0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0xf4]
push eax
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov byte [esp + 0x13c], 0x14
call fcn.00402bf0
mov byte [esp + 0x138], bl
call fcn.00404220
add esp, 0x10
cmp dword [esp + 0x20], ebp
jge 0x40530c
push 0x401e10
push 0xd
push 4
lea eax, [esp + 0xf8]
push eax
mov byte [esp + 0x138], 0x12
call fcn.00412891
lea ecx, [esp + 0x2c]
call fcn.00402a10
lea ecx, [esp + 0x14]
call fcn.00402a10
jmp 0x4053df
lea ecx, [esp + 0xf0]
push ecx
lea ecx, [esp + 0x18]
call fcn.00403370
mov ebx, dword [esp + 0x14]
cmp dword [ebx - 0xc], edi
je 0x40538d
xor edi, edi
cmp dword [0x42d1a4], edi
jle 0x40538d
push edi
mov ecx, 0x42d19c
call fcn.00402610
mov esi, eax
mov eax, dword [esi + 8]
add esi, 8
cmp dword [eax - 0xc], 0
jl 0x405384
push ebx
push eax
call fcn.004119a3
add esp, 8
test eax, eax
je 0x405384
sub eax, dword [esi]
cmp eax, 0xffffffff
je 0x405384
push edi
mov ecx, 0x42d19c
call fcn.00402610
cmp dword [eax + 4], 0
jne 0x405384
push 0xffffffffffffffff
push edi
mov ecx, 0x42d19c
call fcn.00402610
mov ecx, dword [eax + 0x14]
call fcn.00405ba0
inc edi
cmp edi, dword [0x42d1a4]
jl 0x405330
push 0x401e10
push 0xd
push 4
lea edx, [esp + 0xf8]
push edx
mov byte [esp + 0x138], 0x12
call fcn.00412891
lea ecx, [esp + 0x2c]
call fcn.00402a10
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x128], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4053df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret