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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
mov dword [ebp - 0x60], 0x2c79
mov dword [ebp - 0xc], 0xb8d9
mov dword [ebp - 4], 0xf54b
mov dword [ebp - 8], 0x1464
mov dword [ebp - 0x10], 0xc0f8
cmp dword [0x4316d0], 0
je 0x40a9ad
mov eax, 1
jmp 0x40ad56
mov eax, dword [0x430abc]
add eax, 0x1c
mov ecx, dword fs:[eax]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + ecx + 8]
mov dword [ebp - 0x24], eax
jmp 0x40a9f7
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + edx]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x18], 0
je 0x40abda
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
add edx, 0x78
mov dword [ebp - 0x4c], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + ecx]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x40aa41
jmp 0x40a9e6
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x34]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + 0xc]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.004086e0
add esp, 4
cmp eax, 0x7d02231d
jne 0x40abd5
mov edx, dword [0x4309f8]
mov dword [ebp - 0x2c], edx
jmp 0x40aa81
mov eax, dword [ebp - 0x2c]
sub eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0xc]
jg 0x40abc4
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
cmp dword [0x430924], eax
jbe 0x40aac4
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.004060b0
add esp, 8
cmp dword [0x430a64], eax
ja 0x40aac4
call fcn.00406380
cmp eax, dword [0x430a20]
je 0x40ab88
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
imul ecx, dword [ebp - 8], 0x3916
mov eax, 0x18185
cdq
idiv dword [ebp - 8]
sub ecx, edx
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cdq
idiv dword [ebp - 0x10]
mov dword [ebp - 0x10], edx
mov eax, 0x3d5d
cdq
idiv dword [ebp - 0xc]
mov dword [0x430acc], edx
mov ecx, dword [ebp - 4]
imul ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cdq
idiv dword [ebp - 0xc]
cdq
idiv dword [ebp - 8]
imul edx, dword [ebp - 4]
sub ecx, edx
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 4]
sar edx, cl
and eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [0x430a60]
ja 0x40aac4
imul ecx, dword [ebp - 4], 0x17783
add ecx, dword [ebp - 8]
and ecx, dword [ebp - 0x10]
and ecx, dword [ebp - 4]
or ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
imul eax, dword [ebp - 0x10]
cdq
mov ecx, 0x104c4
idiv ecx
imul edx, edx, 0x63e9
imul edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
jmp 0x40abbf
mov eax, 0xf441
cdq
idiv dword [ebp - 8]
add edx, 0x13362
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
imul eax, dword [ebp - 0xc]
imul eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
imul ecx, dword [ebp - 8], 0x1829d
mov edx, dword [ebp - 0x10]
lea eax, [ecx + edx - 0x171b5]
sub eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x40aa78
mov ecx, dword [0x430a34]
cmp ecx, dword [ebp - 4]
jl 0x40aa6d
jmp 0x40abda
jmp 0x40a9e6
cmp dword [ebp - 0x18], 0
jne 0x40abe7
xor eax, eax
jmp 0x40ad56
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0x4316d4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + ecx*4 - 4]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
movzx edx, word [ecx]
cmp edx, 0x775a
jne 0x40ad11
mov eax, dword [ebp - 0x38]
push eax
call fcn.004081e0
add esp, 4
imul ecx, dword [ebp - 0x1c], 0xc
mov edx, dword [ebp - 0x28]
mov dword [edx + ecx], eax
mov eax, dword [0x430a68]
mov dword [ebp - 0x30], eax
jmp 0x40ac6d
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x10]
jg 0x40acc7
push str.refurbishing_twiddle_quietness_KPZwHivDm
call fcn.004010e0
add esp, 4
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
cdq
idiv dword [ebp - 0x10]
mov dword [0x430acc], edx
mov ecx, dword [0x430a34]
cmp ecx, dword [ebp - 4]
jge 0x40ac8c
imul edx, dword [ebp - 0x10], 0x17666
imul edx, dword [ebp - 0x10]
and edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
sar eax, cl
mov dword [0x430924], eax
jmp 0x40ac64
mov ecx, dword [0x430a24]
cmp ecx, dword [ebp - 0x10]
jbe 0x40ac5a
mov edx, dword [ebp - 4]
cmp edx, dword [0x430924]
jg 0x40ac5a
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x58]
movzx edx, word [ecx + eax*2 - 2]
imul eax, dword [ebp - 0x1c], 0xc
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x5c]
mov edx, dword [esi + edx*4]
mov dword [ecx + eax + 4], edx
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x226
jne 0x40ad11
jmp 0x40ad20
mov ecx, dword [ebp - 0x20]
sub ecx, 1
mov dword [ebp - 0x20], ecx
jne 0x40ac22
mov edx, dword [ebp - 0x1c]
mov dword [0x4316d0], edx
mov eax, dword [0x4316d0]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0040a0c0
add esp, 8
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [0x4316d0]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0040a710
add esp, 0xc
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret