Function at 0x415070
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4488db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x700
push ebx
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x44], 1
call fcn.00404100
mov esi, eax
mov dword [esp + 0xcc], esi
call fcn.0044608e
mov eax, dword [eax + 4]
mov dword [esp + 0x58], eax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1e0]
rep stosd dword es:[edi], eax
mov dword [esp + 0x1dc], 0xf
mov dword [esp + 0x1d8], ebx
mov byte [esp + 0x1c8], bl
lea ecx, [esp + 0x28]
mov dword [esp + 0x714], ebx
call fcn.0040bea0
mov dword [esp + 0x2c], eax
mov byte [eax + 0x45], 1
mov eax, dword [esp + 0x2c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [eax], eax
mov eax, dword [esp + 0x2c]
mov dword [eax + 8], eax
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x718], 1
call fcn.0040fe70
mov eax, dword [esp + 0x2c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], ebx
mov dword [eax], eax
mov eax, dword [esp + 0x2c]
mov dword [eax + 8], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x38]
mov byte [esp + 0x714], 2
call fcn.0040bea0
mov dword [esp + 0x3c], eax
mov byte [eax + 0x45], 1
mov eax, dword [esp + 0x3c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [eax], eax
mov eax, dword [esp + 0x3c]
mov dword [eax + 8], eax
mov dword [esp + 0x40], ebx
xor eax, eax
cmp esi, 2
mov ecx, 0x41
lea edi, [esp + 0x2e8]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x600]
mov byte [esp + 0x714], 3
rep stosd dword es:[edi], eax
je 0x4151f0
cmp esi, 3
je 0x4151f0
call fcn.0040b360
sub eax, ebx
je 0x4151e5
dec eax
je 0x4151db
dec eax
je 0x4151d1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
jmp 0x415206
mov dword [esp + 0x24], 5
jmp 0x415206
mov dword [esp + 0x24], 4
jmp 0x415206
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [esp + 0x24], eax
jmp 0x415206
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
xor edx, edx
cmp eax, 0x400
sete dl
dec edx
and edx, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], ebx
lea ebx, [ebx]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x4c]
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
call fcn.0040b080
add esp, 0x10
cmp eax, ebx
mov dword [esp + 0x48], eax
je 0x415a2e
cmp esi, 5
je 0x415249
cmp esi, 6
je 0x415249
cmp esi, 0xa
jne 0x415296
mov edx, dword [esp + 0x58]
cmp dword [edx + 0x214], ebx
je 0x41528c
push str.SPOOLER
call fcn.00405570
push str.SPOOLER
call fcn.00409a00
add esp, 8
xor edi, edi
cmp esi, 5
jne 0x41528c
cmp edi, 4
jge 0x41528c
cmp eax, ebx
jne 0x41528c
push str.SPOOLER
call fcn.00409a00
add esp, 4
inc edi
jmp 0x415273
mov eax, dword [esp + 0x58]
mov dword [eax + 0x214], ebx
cmp dword [0x466c80], ebx
je 0x4152b6
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x8c]
push ebx
push 0x3c
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [esp + 0x10]
push 0x104
lea eax, [esp + 0x2ec]
push eax
push edi
call fcn.00404d90
add esp, 0xc
cmp esi, 2
mov dword [esp + 0x50], eax
je 0x4158d8
cmp esi, 3
je 0x4158d8
cmp esi, 5
je 0x4158d8
cmp dword [esp + 0x18], ebx
je 0x41531b
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
call fcn.00406de0
mov edx, dword [esp + 0x28]
push edx
call fcn.0043cc88
add esp, 0x14
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x2ec]
push ecx
mov ecx, dword [eax + 4]
push ebx
lea edx, [esp + 0x1ec]
push edx
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.00414230
add esp, 0x14
cmp eax, 1
jne 0x4157c6
lea eax, [esp + 0x1e0]
mov dword [esp + 0xac], 0xf
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x415378
sub eax, edx
push eax
lea edx, [esp + 0x1e4]
push edx
lea ecx, [esp + 0x9c]
call fcn.00405ff0
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 4]
mov eax, edi
mov byte [esp + 0x714], 4
mov dword [esp + 0xc8], 0xf
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4153c2
sub eax, esi
push eax
push edi
lea ecx, [esp + 0xb8]
call fcn.00405ff0
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0xb4]
push edx
lea ecx, [esp + 0x18c]
mov byte [esp + 0x71c], 5
call fcn.0040caa0
push eax
lea ecx, [esp + 0x150]
mov byte [esp + 0x718], 6
call fcn.0040cb10
lea eax, [esp + 0x14c]
push eax
lea ecx, [esp + 0xd4]
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x71c], 7
call fcn.00410ff0
cmp dword [esp + 0x180], 0x10
jb 0x41544d
mov edx, dword [esp + 0x16c]
push edx
call fcn.0043cc88
add esp, 4
mov eax, dword [esp + 0x164]
mov edi, 0x10
cmp eax, edi
mov esi, 0xf
mov dword [esp + 0x180], esi
mov dword [esp + 0x17c], ebx
mov byte [esp + 0x16c], bl
jb 0x415487
mov eax, dword [esp + 0x150]
push eax
call fcn.0043cc88
add esp, 4
cmp dword [esp + 0x1b8], edi
mov dword [esp + 0x164], esi
mov dword [esp + 0x160], ebx
mov byte [esp + 0x150], bl
jb 0x4154b5
mov ecx, dword [esp + 0x1a4]
push ecx
call fcn.0043cc88
add esp, 4
cmp dword [esp + 0x19c], edi
mov dword [esp + 0x1b8], esi
mov dword [esp + 0x1b4], ebx
mov byte [esp + 0x1a4], bl
jb 0x4154e3
mov edx, dword [esp + 0x188]
push edx
call fcn.0043cc88
add esp, 4
cmp dword [esp + 0xc8], edi
mov dword [esp + 0x19c], esi
mov dword [esp + 0x198], ebx
mov byte [esp + 0x188], bl
jb 0x415511
mov eax, dword [esp + 0xb4]
push eax
call fcn.0043cc88
add esp, 4
cmp dword [esp + 0xac], edi
mov dword [esp + 0xc8], esi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
mov byte [esp + 0x714], 3
jb 0x415547
mov ecx, dword [esp + 0x98]
push ecx
call fcn.0043cc88
add esp, 4
mov edx, dword [ebp + 0xc]
mov edi, dword [edx + 4]
mov eax, edi
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x415573
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x64]
call fcn.00405ff0
lea eax, [esp + 0x1e0]
mov byte [esp + 0x714], 8
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4155a0
sub eax, edx
push eax
lea eax, [esp + 0x1e4]
push eax
lea ecx, [esp + 0x64]
call fcn.0040c2a0
mov edi, dword [esp + 0x18]
cmp edi, dword [esp + 0x1c]
je 0x415793
lea esp, [esp]
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esp + 0x84]
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
call fcn.00405f00
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0xe8]
mov byte [esp + 0x720], 9
mov dword [esp + 0x100], esi
mov dword [esp + 0xfc], ebx
mov byte [esp + 0xec], bl
call fcn.00405f00
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x80]
push edx
lea ecx, [esp + 0x104]
mov byte [esp + 0x720], 0xa
mov dword [esp + 0x11c], esi
mov dword [esp + 0x118], ebx
mov byte [esp + 0x108], bl
call fcn.00405f00
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x118]
mov byte [esp + 0x718], 0xb
call fcn.0040cb10
lea ecx, [esp + 0x114]
push ecx
lea edx, [esp + 0x1c0]
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x71c], 0xc
call fcn.00410060
cmp dword [esp + 0x148], 0x10
jb 0x4156b1
mov eax, dword [esp + 0x134]
push eax
call fcn.0043cc88
add esp, 4
cmp dword [esp + 0x12c], 0x10
mov dword [esp + 0x148], esi
mov dword [esp + 0x144], ebx
mov byte [esp + 0x134], bl
jb 0x4156e0
mov ecx, dword [esp + 0x118]
push ecx
call fcn.0043cc88
add esp, 4
cmp dword [esp + 0x110], 0x10
mov dword [esp + 0x12c], esi
mov dword [esp + 0x128], ebx
mov byte [esp + 0x118], bl
jb 0x41570f
mov edx, dword [esp + 0xfc]
push edx
call fcn.0043cc88
add esp, 4
cmp dword [esp + 0xf4], 0x10
mov dword [esp + 0x110], esi
mov dword [esp + 0x10c], ebx
mov byte [esp + 0xfc], bl
jb 0x41573e
mov eax, dword [esp + 0xe0]
push eax
call fcn.0043cc88
add esp, 4
cmp dword [esp + 0x90], 0x10
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
mov byte [esp + 0x714], 8
jb 0x415772
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.0043cc88
add esp, 4
mov eax, dword [esp + 0x1c]
add edi, 0x1c
cmp edi, eax
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
jne 0x4155d0
cmp dword [esp + 0x74], 0x10
mov byte [esp + 0x714], 3
jb 0x4157af
mov edx, dword [esp + 0x60]
push edx
call fcn.0043cc88
add esp, 4
mov edi, dword [esp + 0x10]
mov dword [esp + 0x74], esi
mov esi, dword [esp + 0xcc]
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
cmp edi, 2
jne 0x41586c
mov edx, dword [esp + 0x34]
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x4f8]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x3f0]
rep stosd dword es:[edi], eax
push 1
lea eax, [esp + 0x4fc]
push eax
mov eax, dword [esp + 0x54]
lea ecx, [eax + eax*4]
mov eax, dword [edx + ecx*8 + 0xc]
push eax
call fcn.004041b0
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx + 0xac]
lea edx, [esp + 0x3fc]
add esp, 0xc
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x415822
lea edx, [esp + 0x4f8]
push edx
call fcn.0042fc74
fstp qword [esp + 0xd4]
lea eax, [esp + 0x3f4]
push eax
call fcn.0042fc74
fld qword [esp + 0xd8]
fcomp st(1)
add esp, 8
fnstsw ax
fstp st(0)
test ah, 5
jp 0x41586c
mov ecx, dword [esp + 0x34]
push ecx
jmp 0x415a22
push 0x44c89c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4158b1
push str.DeletePrinterDriverExA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4158aa
mov edx, dword [esp + 0x50]
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ecx + 4]
push 3
push edx
lea ecx, [esp + 0x2f4]
push ecx
push ebx
call eax
mov dword [esp + 0x48], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x48], ebx
jne 0x4158ca
cmp eax, 2
jne 0x415a19
cmp esi, 2
jne 0x4158f3
cmp edi, ebx
je 0x415937
jmp 0x4159af
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push eax
lea ecx, [esp + 0x2ec]
push ecx
push ebx
call sub.WINSPOOL.DRV_DeletePrinterDriverA
mov dword [esp + 0x48], eax
jmp 0x4158b5
cmp esi, 3
jne 0x415901
cmp edi, ebx
je 0x415937
jmp 0x4159af
cmp esi, 5
jne 0x415910
cmp edi, 2
je 0x415937
jmp 0x4159af
cmp esi, 6
jne 0x415924
cmp edi, 3
je 0x415937
cmp edi, 5
je 0x415937
jmp 0x4159af
cmp esi, 0xa
jne 0x4159af
cmp edi, 3
je 0x415937
cmp edi, 5
jne 0x4159af
mov edi, dword [ebp + 0xc]
push edi
lea ebx, [esp + 0x604]
call fcn.0040de40
add esp, 4
test eax, eax
jne 0x4159a9
mov edx, dword [edi + 0x20]
push eax
push edx
mov eax, ebx
push eax
call fcn.0040a1c0
add esp, 0xc
test eax, eax
je 0x4159a9
cmp esi, 6
je 0x415971
cmp esi, 5
je 0x415971
cmp esi, 0xa
jne 0x4159a9
push str.SPOOLER
call fcn.00405570
push str.SPOOLER
call fcn.00409a00
add esp, 8
xor edi, edi
cmp esi, 5
jne 0x4159a9
nop
cmp edi, 4
jge 0x4159a9
test eax, eax
jne 0x4159a9
push str.SPOOLER
call fcn.00409a00
add esp, 4
inc edi
jmp 0x415990
mov edi, dword [esp + 0x10]
xor ebx, ebx
cmp dword [0x466c80], ebx
je 0x4159cf
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x8c]
push ebx
push 0x46
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp esi, 2
je 0x4159fe
cmp esi, 3
je 0x4159fe
cmp esi, 5
je 0x4159fe
cmp esi, 6
jne 0x4159ef
cmp edi, 3
je 0x4159fe
cmp edi, 5
je 0x4159fe
jmp 0x415a1d
cmp esi, 0xa
jne 0x415a1d
cmp edi, 3
je 0x4159fe
cmp edi, 5
jne 0x415a1d
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x34]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*8]
push edx
call fcn.00411a00
add esp, 4
test eax, eax
jne 0x415a1d
mov dword [esp + 0x44], ebx
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jbe 0x415210
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x10], eax
je 0x415d51
mov esi, dword [esp + 0x10]
push 0xffffffffffffffff
lea eax, [esi + 0xc]
push ebx
mov edi, 0xf
push eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0xb8], edi
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
call fcn.00405f00
push 0xffffffffffffffff
lea eax, [esi + 0x28]
push ebx
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x720], 0xd
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
call fcn.00405f00
cmp dword [esp + 0x74], 0x10
mov eax, dword [esp + 0x60]
mov byte [esp + 0x714], 0xe
jae 0x415ac4
lea eax, [esp + 0x60]
push 0x104
push eax
lea ecx, [esp + 0x1e8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0xb8]
push ecx
call fcn.0040cb90
add esp, 0xc
lea edx, [esp + 0xb0]
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x718], 0xf
call fcn.0040bfa0
mov esi, eax
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x3c]
call fcn.0040bee0
mov edi, eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x54], esi
je 0x415b7f
mov ecx, eax
cmp ecx, dword [esp + 0x1c]
je 0x415b6b
mov esi, ecx
add esi, 0x18
lea esp, [esp]
cmp dword [esi], 0x10
jb 0x415b51
mov eax, dword [esi - 0x14]
push eax
call fcn.0043cc88
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, eax
jne 0x415b40
mov eax, dword [esp + 0x18]
push eax
mov esi, 0xf
call fcn.0043cc88
add esp, 4
jmp 0x415b84
mov esi, 0xf
cmp edi, dword [esp + 0x54]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x415c53
lea ebx, [ebx]
push 0xffffffffffffffff
lea eax, [edi + 0x28]
push ebx
push eax
lea ecx, [esp + 0x84]
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
call fcn.00405f00
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x718], 0x10
call fcn.00412f40
cmp dword [esp + 0x90], 0x10
mov byte [esp + 0x714], 0xf
jb 0x415bfd
mov edx, dword [esp + 0x7c]
push edx
call fcn.0043cc88
add esp, 4
cmp byte [edi + 0x45], bl
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
jne 0x415c49
mov eax, dword [edi + 8]
cmp byte [eax + 0x45], bl
jne 0x415c30
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x45], bl
jne 0x415c49
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x45], bl
je 0x415c25
jmp 0x415c49
mov eax, dword [edi + 4]
cmp byte [eax + 0x45], bl
jne 0x415c47
cmp edi, dword [eax + 8]
jne 0x415c47
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x45], bl
je 0x415c38
mov edi, eax
cmp edi, dword [esp + 0x54]
jne 0x415ba0
lea eax, [esp + 0x14]
push eax
push 0x44b62a
push 1
lea ecx, [esp + 0x1ec]
push ecx
push 0x44b62a
call fcn.00414230
mov eax, dword [esp + 0xdc]
mov edi, 0x10
add esp, 0x14
cmp eax, edi
jb 0x415c94
mov edx, dword [esp + 0xb4]
push edx
call fcn.0043cc88
add esp, 4
cmp dword [esp + 0x74], edi
mov dword [esp + 0xc8], esi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
jb 0x415cbc
mov eax, dword [esp + 0x60]
push eax
call fcn.0043cc88
add esp, 4
cmp dword [esp + 0xac], edi
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
mov byte [esp + 0x714], 3
jb 0x415ce9
mov ecx, dword [esp + 0x98]
push ecx
call fcn.0043cc88
add esp, 4
mov edx, dword [esp + 0x10]
cmp byte [edx + 0x45], bl
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
jne 0x415d43
mov ecx, dword [edx + 8]
cmp byte [ecx + 0x45], bl
jne 0x415d25
mov eax, dword [ecx]
cmp byte [eax + 0x45], bl
jne 0x415d1f
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x45], bl
je 0x415d16
mov dword [esp + 0x10], ecx
jmp 0x415d43
mov eax, dword [edx + 4]
cmp byte [eax + 0x45], bl
jne 0x415d3f
lea ecx, [ecx]
cmp edx, dword [eax + 8]
jne 0x415d3f
mov edx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x45], bl
je 0x415d30
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x2c]
jne 0x415a55
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x44]
mov byte [esp + 0x720], 2
call fcn.00411590
mov edx, dword [esp + 0x3c]
push edx
call fcn.0043cc88
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
je 0x415dcb
mov edi, dword [esp + 0x1c]
cmp eax, edi
je 0x415dc2
lea esi, [eax + 0x18]
cmp dword [esi], 0x10
jb 0x415dac
mov eax, dword [esi - 0x14]
push eax
call fcn.0043cc88
mov eax, dword [esp + 0x1c]
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, edi
jne 0x415d97
push eax
call fcn.0043cc88
add esp, 4
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
push eax
push ecx
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x720], bl
call fcn.004114d0
mov eax, dword [esp + 0x2c]
push eax
call fcn.0043cc88
mov ecx, dword [esp + 0x710]
mov eax, dword [esp + 0x48]
add esp, 4
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret