Function at 0x406090
Capabilities:
Get mac address on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45d31e
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x474cb0]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov ebx, ecx
add ebx, 0x48
mov dword [esp + 0x5c], ebx
call fcn.00407570
lea eax, [esp + 0x58]
push eax
call fcn.004013e0
mov dword [esp + 0x118], 0
push 0x288
call fcn.00446c79
add esp, 4
lea ecx, [esp + 0x4c]
mov esi, eax
push ecx
push esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x54], 0x288
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x406132
push esi
call fcn.00446d43
mov edx, dword [esp + 0x50]
add esp, 4
push edx
call fcn.00446c79
mov esi, eax
add esp, 4
lea eax, [esp + 0x4c]
push eax
push esi
mov dword [esp + 0x5c], esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x406eee
mov dword [esp + 0x40], esi
test esi, esi
je 0x406ebf
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x60], ecx
lea edx, [esp + 0x64]
push edx
call fcn.00406f30
mov byte [esp + 0x118], 1
mov esi, dword [esp + 0x40]
lea ebx, [esi + 8]
lea eax, [esp + 0x74]
call fcn.00401540
mov eax, dword [esi + 0x19c]
mov dword [esp + 0x64], eax
lea ebx, [esi + 0x10c]
lea eax, [esp + 0x78]
call fcn.00401540
mov ecx, dword [esi + 0x1a0]
xor edx, edx
mov dword [esp + 0x68], ecx
cmp dword [esi + 0x1a4], edx
mov ecx, 0x4767b4
setne dl
xor eax, eax
mov dword [esp + 0x6c], edx
cmp dword [esi + 0x224], eax
mov edx, dword [0x4767b4]
setne al
mov dword [esp + 0x70], eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x50], eax
mov byte [esp + 0x118], 3
movzx ecx, byte [esi + 0x199]
movzx edx, byte [esi + 0x198]
movzx eax, byte [esi + 0x197]
push ecx
movzx ecx, byte [esi + 0x196]
push edx
movzx edx, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push ecx
push edx
push eax
push str._02X:_02X:_02X:_02X:_02X:_02X
lea edi, [esp + 0x6c]
call fcn.00408180
mov ebx, dword [esp + 0x6c]
add esp, 0x1c
lea eax, [esp + 0x7c]
call fcn.00401540
lea ebx, [esi + 0x1ac]
lea ebx, [ebx]
mov edx, dword [0x4767b4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4767b4
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x118], 5
mov edx, dword [0x4767b4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4767b4
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x118], 8
lea edi, [ebx + 4]
test edi, edi
je 0x4062d4
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 3
call ebp
mov esi, eax
dec esi
test esi, esi
jle 0x4062d4
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x4062ad
mov ecx, esi
lea eax, [esp + 0x18]
call fcn.004016f0
mov edx, dword [esp + 0x18]
push esi
push edx
push 0xffffffffffffffff
push edi
push 0
push 3
call ebp
mov eax, dword [esp + 0x18]
cmp esi, dword [eax - 8]
jg 0x406ee4
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov word [edx + esi*2], cx
jmp 0x40632f
mov edx, dword [esp + 0x18]
cmp dword [edx - 0xc], 0
mov esi, dword [edx - 0x10]
lea eax, [edx - 0x10]
je 0x40632f
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x406309
cmp dword [edx - 8], 0
jl 0x406ee4
mov dword [edx - 0xc], 0
mov ecx, dword [esp + 0x18]
xor eax, eax
mov word [ecx], ax
jmp 0x40632f
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40631f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea edi, [ebx + 0x14]
test edi, edi
je 0x406395
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 3
call ebp
mov esi, eax
dec esi
test esi, esi
jle 0x406395
mov edx, dword [esp + 0x1c]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x40636e
mov ecx, esi
lea eax, [esp + 0x1c]
call fcn.004016f0
mov edx, dword [esp + 0x1c]
push esi
push edx
push 0xffffffffffffffff
push edi
push 0
push 3
call ebp
mov eax, dword [esp + 0x1c]
cmp esi, dword [eax - 8]
jg 0x406ee4
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov word [edx + esi*2], cx
jmp 0x4063f0
mov edx, dword [esp + 0x1c]
cmp dword [edx - 0xc], 0
mov esi, dword [edx - 0x10]
lea eax, [edx - 0x10]
je 0x4063f0
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x4063ca
cmp dword [edx - 8], 0
jl 0x406ee4
mov dword [edx - 0xc], 0
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov word [ecx], ax
jmp 0x4063f0
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4063e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x94]
mov edx, dword [eax + 4]
lea edi, [eax + 4]
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
call fcn.00407900
lea ecx, [esp + 0x80]
mov esi, eax
call fcn.004079b0
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov ebx, dword [ebx]
mov al, 9
mov byte [esp + 0x118], al
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], ecx
mov byte [esp + 0x118], al
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406458
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x118], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406480
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
jne 0x406230
mov ebx, dword [esp + 0x40]
lea ecx, [esp + 0x24]
add ebx, 0x1d4
mov dword [esp + 0x44], ecx
lea ebx, [ebx]
mov edx, dword [0x4767b4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4767b4
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x118], 0xe
mov edx, dword [0x4767b4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4767b4
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x118], 0x11
lea edi, [ebx + 4]
test edi, edi
je 0x406544
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 3
call ebp
mov esi, eax
dec esi
test esi, esi
jle 0x406544
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x40651d
mov ecx, esi
lea eax, [esp + 0x20]
call fcn.004016f0
mov edx, dword [esp + 0x20]
push esi
push edx
push 0xffffffffffffffff
push edi
push 0
push 3
call ebp
mov eax, dword [esp + 0x20]
cmp esi, dword [eax - 8]
jg 0x406ee4
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov word [edx + esi*2], cx
jmp 0x40659f
mov edx, dword [esp + 0x20]
cmp dword [edx - 0xc], 0
mov esi, dword [edx - 0x10]
lea eax, [edx - 0x10]
je 0x40659f
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x406579
cmp dword [edx - 8], 0
jl 0x406ee4
mov dword [edx - 0xc], 0
mov ecx, dword [esp + 0x20]
xor eax, eax
mov word [ecx], ax
jmp 0x40659f
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40658f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
lea edi, [ebx + 0x14]
test edi, edi
je 0x406605
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 3
call ebp
mov esi, eax
dec esi
test esi, esi
jle 0x406605
mov edx, dword [esp + 0x24]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x4065de
mov ecx, esi
lea eax, [esp + 0x24]
call fcn.004016f0
mov edx, dword [esp + 0x24]
push esi
push edx
push 0xffffffffffffffff
push edi
push 0
push 3
call ebp
mov eax, dword [esp + 0x24]
cmp esi, dword [eax - 8]
jg 0x406ee4
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov word [edx + esi*2], cx
jmp 0x406660
mov edx, dword [esp + 0x24]
cmp dword [edx - 0xc], 0
mov esi, dword [edx - 0x10]
lea eax, [edx - 0x10]
je 0x406660
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x40663a
cmp dword [edx - 8], 0
jl 0x406ee4
mov dword [edx - 0xc], 0
mov ecx, dword [esp + 0x24]
xor eax, eax
mov word [ecx], ax
jmp 0x406660
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406650
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xb0]
mov edx, dword [eax + 4]
lea edi, [eax + 4]
lea ecx, [esp + 0x20]
push ecx
push edx
push eax
call fcn.00407900
lea ecx, [esp + 0x9c]
mov esi, eax
call fcn.004079b0
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov ebx, dword [ebx]
mov al, 0x12
mov byte [esp + 0x118], al
lea ecx, [esp + 0x24]
mov dword [esp + 0x48], ecx
mov byte [esp + 0x118], al
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4066c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x118], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4066f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
jne 0x4064a0
mov ebx, dword [esp + 0x40]
lea ecx, [esp + 0x3c]
add ebx, 0x1fc
mov dword [esp + 0x48], ecx
lea ebx, [ebx]
mov edx, dword [0x4767b4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4767b4
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
mov byte [esp + 0x118], 0x17
mov edx, dword [0x4767b4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4767b4
call eax
add eax, 0x10
mov dword [esp + 0x3c], eax
mov byte [esp + 0x118], 0x1a
lea edi, [ebx + 4]
test edi, edi
je 0x4067b4
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 3
call ebp
mov esi, eax
dec esi
test esi, esi
jle 0x4067b4
mov edx, dword [esp + 0x38]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x40678d
mov ecx, esi
lea eax, [esp + 0x38]
call fcn.004016f0
mov edx, dword [esp + 0x38]
push esi
push edx
push 0xffffffffffffffff
push edi
push 0
push 3
call ebp
mov eax, dword [esp + 0x38]
cmp esi, dword [eax - 8]
jg 0x406ee4
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x38]
xor ecx, ecx
mov word [edx + esi*2], cx
jmp 0x40680f
mov edx, dword [esp + 0x38]
cmp dword [edx - 0xc], 0
mov esi, dword [edx - 0x10]
lea eax, [edx - 0x10]
je 0x40680f
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x4067e9
cmp dword [edx - 8], 0
jl 0x406ee4
mov dword [edx - 0xc], 0
mov ecx, dword [esp + 0x38]
xor eax, eax
mov word [ecx], ax
jmp 0x40680f
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4067ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
lea edi, [ebx + 0x14]
test edi, edi
je 0x406875
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 3
call ebp
mov esi, eax
dec esi
test esi, esi
jle 0x406875
mov edx, dword [esp + 0x3c]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x40684e
mov ecx, esi
lea eax, [esp + 0x3c]
call fcn.004016f0
mov edx, dword [esp + 0x3c]
push esi
push edx
push 0xffffffffffffffff
push edi
push 0
push 3
call ebp
mov eax, dword [esp + 0x3c]
cmp esi, dword [eax - 8]
jg 0x406ee4
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x3c]
xor ecx, ecx
mov word [edx + esi*2], cx
jmp 0x4068d0
mov edx, dword [esp + 0x3c]
cmp dword [edx - 0xc], 0
mov esi, dword [edx - 0x10]
lea eax, [edx - 0x10]
je 0x4068d0
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x4068aa
cmp dword [edx - 8], 0
jl 0x406ee4
mov dword [edx - 0xc], 0
mov ecx, dword [esp + 0x3c]
xor eax, eax
mov word [ecx], ax
jmp 0x4068d0
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4068c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xcc]
mov edx, dword [eax + 4]
lea edi, [eax + 4]
lea ecx, [esp + 0x38]
push ecx
push edx
push eax
call fcn.00407900
lea ecx, [esp + 0xb8]
mov esi, eax
call fcn.004079b0
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov ebx, dword [ebx]
mov al, 0x1b
mov byte [esp + 0x118], al
lea ecx, [esp + 0x3c]
mov dword [esp + 0x44], ecx
mov byte [esp + 0x118], al
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406938
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x118], 3
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406960
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
jne 0x406710
mov ebx, dword [esp + 0x40]
lea ecx, [esp + 0x34]
add ebx, 0x228
mov dword [esp + 0x48], ecx
lea ebx, [ebx]
mov edx, dword [0x4767b4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4767b4
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x118], 0x20
mov edx, dword [0x4767b4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4767b4
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov byte [esp + 0x118], 0x23
lea edi, [ebx + 4]
test edi, edi
je 0x406a24
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 3
call ebp
mov esi, eax
dec esi
test esi, esi
jle 0x406a24
mov edx, dword [esp + 0x30]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x4069fd
mov ecx, esi
lea eax, [esp + 0x30]
call fcn.004016f0
mov edx, dword [esp + 0x30]
push esi
push edx
push 0xffffffffffffffff
push edi
push 0
push 3
call ebp
mov eax, dword [esp + 0x30]
cmp esi, dword [eax - 8]
jg 0x406ee4
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x30]
xor ecx, ecx
mov word [edx + esi*2], cx
jmp 0x406a7f
mov edx, dword [esp + 0x30]
cmp dword [edx - 0xc], 0
mov esi, dword [edx - 0x10]
lea eax, [edx - 0x10]
je 0x406a7f
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x406a59
cmp dword [edx - 8], 0
jl 0x406ee4
mov dword [edx - 0xc], 0
mov ecx, dword [esp + 0x30]
xor eax, eax
mov word [ecx], ax
jmp 0x406a7f
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406a6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
lea edi, [ebx + 0x14]
test edi, edi
je 0x406ae5
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 3
call ebp
mov esi, eax
dec esi
test esi, esi
jle 0x406ae5
mov edx, dword [esp + 0x34]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x406abe
mov ecx, esi
lea eax, [esp + 0x34]
call fcn.004016f0
mov edx, dword [esp + 0x34]
push esi
push edx
push 0xffffffffffffffff
push edi
push 0
push 3
call ebp
mov eax, dword [esp + 0x34]
cmp esi, dword [eax - 8]
jg 0x406ee4
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x34]
xor ecx, ecx
mov word [edx + esi*2], cx
jmp 0x406b40
mov edx, dword [esp + 0x34]
cmp dword [edx - 0xc], 0
mov esi, dword [edx - 0x10]
lea eax, [edx - 0x10]
je 0x406b40
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x406b1a
cmp dword [edx - 8], 0
jl 0x406ee4
mov dword [edx - 0xc], 0
mov ecx, dword [esp + 0x34]
xor eax, eax
mov word [ecx], ax
jmp 0x406b40
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406b30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xe8]
mov edx, dword [eax + 4]
lea edi, [eax + 4]
lea ecx, [esp + 0x30]
push ecx
push edx
push eax
call fcn.00407900
lea ecx, [esp + 0xd4]
mov esi, eax
call fcn.004079b0
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov ebx, dword [ebx]
mov al, 0x24
mov byte [esp + 0x118], al
lea ecx, [esp + 0x34]
mov dword [esp + 0x44], ecx
mov byte [esp + 0x118], al
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406ba8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x118], 3
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406bd0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
jne 0x406980
mov ebx, dword [esp + 0x40]
lea ecx, [esp + 0x2c]
add ebx, 0x250
mov dword [esp + 0x48], ecx
lea ebx, [ebx]
mov edx, dword [0x4767b4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4767b4
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x118], 0x29
mov edx, dword [0x4767b4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4767b4
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x118], 0x2c
lea edi, [ebx + 4]
test edi, edi
je 0x406c94
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 3
call ebp
mov esi, eax
dec esi
test esi, esi
jle 0x406c94
mov edx, dword [esp + 0x28]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x406c6d
mov ecx, esi
lea eax, [esp + 0x28]
call fcn.004016f0
mov edx, dword [esp + 0x28]
push esi
push edx
push 0xffffffffffffffff
push edi
push 0
push 3
call ebp
mov eax, dword [esp + 0x28]
cmp esi, dword [eax - 8]
jg 0x406ee4
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x28]
xor ecx, ecx
mov word [edx + esi*2], cx
jmp 0x406cef
mov edx, dword [esp + 0x28]
cmp dword [edx - 0xc], 0
mov esi, dword [edx - 0x10]
lea eax, [edx - 0x10]
je 0x406cef
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x406cc9
cmp dword [edx - 8], 0
jl 0x406ee4
mov dword [edx - 0xc], 0
mov ecx, dword [esp + 0x28]
xor eax, eax
mov word [ecx], ax
jmp 0x406cef
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406cdf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
lea edi, [ebx + 0x14]
test edi, edi
je 0x406d55
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 3
call ebp
mov esi, eax
dec esi
test esi, esi
jle 0x406d55
mov edx, dword [esp + 0x2c]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x406d2e
mov ecx, esi
lea eax, [esp + 0x2c]
call fcn.004016f0
mov edx, dword [esp + 0x2c]
push esi
push edx
push 0xffffffffffffffff
push edi
push 0
push 3
call ebp
mov eax, dword [esp + 0x2c]
cmp esi, dword [eax - 8]
jg 0x406ee4
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x2c]
xor ecx, ecx
mov word [edx + esi*2], cx
jmp 0x406db0
mov edx, dword [esp + 0x2c]
cmp dword [edx - 0xc], 0
mov esi, dword [edx - 0x10]
lea eax, [edx - 0x10]
je 0x406db0
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x406d8a
cmp dword [edx - 8], 0
jl 0x406ee4
mov dword [edx - 0xc], 0
mov ecx, dword [esp + 0x2c]
xor eax, eax
mov word [ecx], ax
jmp 0x406db0
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406da0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x104]
mov edx, dword [eax + 4]
lea edi, [eax + 4]
lea ecx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00407900
lea ecx, [esp + 0xf0]
mov esi, eax
call fcn.004079b0
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov ebx, dword [ebx]
mov al, 0x2d
mov byte [esp + 0x118], al
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], ecx
mov byte [esp + 0x118], al
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406e18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x118], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406e40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
jne 0x406bf0
mov ebx, dword [esp + 0x5c]
mov esi, dword [ebx + 0x14]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x64]
push ecx
push edx
push esi
call fcn.00407b80
mov ecx, ebx
mov edi, eax
call fcn.00407c30
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov eax, dword [esp + 0x40]
mov esi, dword [eax]
mov dword [esp + 0x40], esi
mov byte [esp + 0x118], 1
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406ea1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x118], 0
lea ecx, [esp + 0x64]
push ecx
call fcn.00406ff0
test esi, esi
jne 0x406154
mov esi, dword [esp + 0x54]
push esi
call fcn.00446d43
add esp, 4
mov dword [esp + 0x118], 0xffffffff
lea edx, [esp + 0x58]
push edx
call fcn.004014e0
mov eax, 1
jmp 0x406f0e
push 0x80070057
call fcn.00401a10
push esi
call fcn.00446d43
add esp, 4
mov dword [esp + 0x118], 0xffffffff
lea eax, [esp + 0x58]
push eax
call fcn.004014e0
xor eax, eax
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret